Skip to content

Instantly share code, notes, and snippets.

@nwjlyons
Last active August 29, 2015 14:01
Show Gist options
  • Save nwjlyons/aa5536e65738fed13661 to your computer and use it in GitHub Desktop.
Save nwjlyons/aa5536e65738fed13661 to your computer and use it in GitHub Desktop.
Play sound after command has finished
# Play sound after command has finished.
#
# Usage:
# end ./manage.py test
end() {
"$@" && paplay /usr/share/sounds/alsa/Front_Left.wav
}
@nwjlyons
Copy link
Author

Add to ~/.bashrc. May need to replace filepath of sound file and sound player.

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