Created
April 18, 2015 18:23
-
-
Save hail2u/cf12eb3b518f033dab1a to your computer and use it in GitHub Desktop.
git runって間違えた時にnpm runにすり替えるやつ
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
# 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