Skip to content

Instantly share code, notes, and snippets.

@ltackett
Created August 4, 2010 17:53
Show Gist options
  • Save ltackett/508516 to your computer and use it in GitHub Desktop.
Save ltackett/508516 to your computer and use it in GitHub Desktop.
# sounds -- YES! SOUNDS!
export SUCCEED="$HOME/Music/succeed.mp3"
export FAIL="$HOME/Music/fail.mp3"
alias g='git'
# Gush was just an alias before, but this is way better.
# Thanks M. Dave Auayan ( http://github.com/sxtxixtxcxh )
function gush {
g push "$@"
if [ $? = 0 ]; then
{ afplay $SUCCEED & } 2>/dev/null
disown
else
{ afplay $FAIL & } 2>/dev/null
disown
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment