Skip to content

Instantly share code, notes, and snippets.

@takuzoo3868
Last active November 28, 2017 05:34
Show Gist options
  • Save takuzoo3868/c10f57c4a097f29ea69e5fad067c500d to your computer and use it in GitHub Desktop.
Save takuzoo3868/c10f57c4a097f29ea69e5fad067c500d to your computer and use it in GitHub Desktop.
:octocat: Shell script celebrating to get a sense of accomplishment when git push
#!/bin/sh
# コミットに達成感が欲しかったんじゃ
# pushすると /Music/git_commit.wav に保存した音声が鳴ります
# prevent double startup
if [ $(pgrep aplay) ] ; then
exit 1
fi
aplay -q ~/Music/git_commit.wav > /dev/null 2>&1 &
@takuzoo3868
Copy link
Author

takuzoo3868 commented Apr 24, 2017

How to use

  1. add wav in Music (e.g title: git_commit.wav)
  2. copy this script to "~/ your_project /.git/hooks/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment