Created
July 30, 2015 06:15
-
-
Save andfaulkner/58c34fdab23161e96889 to your computer and use it in GitHub Desktop.
Bash npm utils
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
#find version of globally installed package | |
alias npmpv="npm list -g | grep" | |
#add new alias to bashrc, also make immediately available | |
function newalias { | |
echo "" >> ~/.bashrc | |
echo "" >> ~/.bashrc | |
echo 'alias' ${1}='"'${2}'"' >> ~/.bashrc | |
$(echo 'alias' ${1}'='${2}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment