Skip to content

Instantly share code, notes, and snippets.

@fbiville
Last active December 17, 2015 11:09
Show Gist options
  • Save fbiville/5599833 to your computer and use it in GitHub Desktop.
Save fbiville/5599833 to your computer and use it in GitHub Desktop.
Send notification after your build is done. Example (with oh-my-zsh plugin alias): xn mvnci
#!/bin/zsh
source /home/fbiville/.zshrc
if [[ -z "$@" ]]; then
echo "ERROR: specify a nonempty command"
else
eval "$@"; notify-send "`pwd`: command finished"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment