Skip to content

Instantly share code, notes, and snippets.

@jroes
Created March 6, 2012 16:38
Show Gist options
  • Save jroes/1987346 to your computer and use it in GitHub Desktop.
Save jroes/1987346 to your computer and use it in GitHub Desktop.
Play Warcraft 2 "work complete" sound with shell alias `beep`
#!/bin/bash
#
# Adds a shell alias `beep` that plays the "Work Complete!" sound from Warcraft 2 on OSX via afplay.
#
# Just add `&& beep` to the end of any long-running CLI process. Useful if you aren't a Growl user.
#
# rake db:reset && rake db:test:prepare && beep # => You'll hear "Work Complete!" when it's done.
#
# Jon Roes <jroes@jroes.net>
cd && wget http://www.thanatosrealms.com/war2/sounds/orcs/basic-orc-voices/work-complete.wav && echo 'alias beep="afplay ~/work-complete.wav"' >> ~/.bash_profile && source ~/.bash_profile && beep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment