Skip to content

Instantly share code, notes, and snippets.

@ihommani
Forked from fbiville/xn
Last active December 18, 2015 23:59
Show Gist options
  • Save ihommani/5865636 to your computer and use it in GitHub Desktop.
Save ihommani/5865636 to your computer and use it in GitHub Desktop.
#!/bin/zsh
source ~/.zshrc;
if [[ -z $1 ]]; then
echo "ERROR: specify a nonempty command"
else
eval $@ && notify-send "`pwd`: $1 finished"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment