Created
January 5, 2016 19:07
-
-
Save zhangchiqing/dff06f97e0697622a0fb to your computer and use it in GitHub Desktop.
Shortcut to run local node module
This file contains 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
# Put the following code into your .bash_profile or .zshrc | |
local_node_module() { | |
./node_modules/.bin/"$*" | |
} | |
alias nn="local_node_module" | |
# `nn gulp` is now equivalent to `./node_module/.bin/gulp` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment