Skip to content

Instantly share code, notes, and snippets.

@nadav-dav
Last active December 30, 2015 16:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nadav-dav/7855155 to your computer and use it in GitHub Desktop.
Save nadav-dav/7855155 to your computer and use it in GitHub Desktop.
Osx ding tip!

Here is a tip! add this function to your .bashrc / .profile file:

function ding(){
  if [[ $? != 0 ]] ; then
    afplay /System/Library/Sounds/Basso.aiff
  else
    afplay /System/Library/Sounds/Glass.aiff
  fi
}

this way, you could use sounds to monitor your process by sounds! for example: mvn clean install ; ding

if the build fail it will play "basso" effect, and if it passes it will play "glass".

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