Last active
August 29, 2015 14:01
-
-
Save nwjlyons/aa5536e65738fed13661 to your computer and use it in GitHub Desktop.
Play sound after command has finished
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Play sound after command has finished. | |
# | |
# Usage: | |
# end ./manage.py test | |
end() { | |
"$@" && paplay /usr/share/sounds/alsa/Front_Left.wav | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add to
~/.bashrc
. May need to replace filepath of sound file and sound player.