Last active
July 7, 2019 16:49
-
-
Save barn/9a9e4a0cf46538404fa0f7ed4af42358 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
NPM="$(which -a npm 2>/dev/null | grep -m 1 /)" | |
if [ -n "$NPM" ] | |
then | |
npm() { | |
local rc | |
"$NPM" $@ | |
rc=$? | |
osascript -e "display notification \"npm finished, returnd $rc\" with title \"NPMed\"" | |
return $rc | |
} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment