Skip to content

Instantly share code, notes, and snippets.

@barn barn/npm.sh
Last active Jul 7, 2019

Embed
What would you like to do?
#! /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
You can’t perform that action at this time.