Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created April 18, 2015 18:23
Show Gist options
  • Save hail2u/cf12eb3b518f033dab1a to your computer and use it in GitHub Desktop.
Save hail2u/cf12eb3b518f033dab1a to your computer and use it in GitHub Desktop.
git runって間違えた時にnpm runにすり替えるやつ
# git wrapper
git() {
if [ "$1" = "run" ]; then
$(which npm) run $*
else
$(which git) $*
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment