-
-
Save abhshkdz/4148037 to your computer and use it in GitHub Desktop.
Source nvm + tab completion
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
# NVM | |
export NVM_HOME="$HOME/.nvm" | |
if [[ -f "$NVM_HOME/nvm.sh" ]]; then | |
source "$NVM_HOME/nvm.sh" | |
fi | |
# NVM TAB COMPLETION | |
if [[ -f "$NVM_HOME/bash_completion" ]]; then | |
source "$NVM_HOME/bash_completion" | |
fi | |
# NPM TAB COMPLETION | |
if npm -v >/dev/null 2>&1; then | |
. <(npm completion) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment