Skip to content

Instantly share code, notes, and snippets.

@jpoz
Created December 6, 2012 23:52
Show Gist options
  • Save jpoz/4229519 to your computer and use it in GitHub Desktop.
Save jpoz/4229519 to your computer and use it in GitHub Desktop.
function announce {
say $1 && ~/bin/terminal-notifier.app/Contents/MacOS/terminal-notifier -message $1 -title $1
}
function @ {
./bin/$1 $2 $3 $4 $5
}
function $ {
eval $*
if [[ $? -eq 0 ]]
then
announce "Success ${PWD##*/}"
else
announce "Error ${PWD##*/}"
fi
}
function » {
eval ./bin/$*
if [[ $? -eq 0 ]]
then
announce "Success ${PWD##*/}"
else
announce "Error ${PWD##*/}"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment