Skip to content

Instantly share code, notes, and snippets.

@MichaelXavier
Last active December 3, 2016 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelXavier/a6bf1d8b38d974889ac5977f0d380259 to your computer and use it in GitHub Desktop.
Save MichaelXavier/a6bf1d8b38d974889ac5977f0d380259 to your computer and use it in GitHub Desktop.
Hook stack to play deathgrips noises on success/failure
#!/bin/bash
# alias stack='~/stack.sh'
SUCCESS=${SUCCESS:=~/Dropbox/Music/YUH.wav}
FAILURE=${FAILURE:=~/Dropbox/Music/AUGH.wav}
stack "$@"
status=$?
if [[ $status -eq 0 ]]
then
aplay $SUCCESS --quiet
else
aplay $FAILURE --quiet
fi
exit $status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment