Skip to content

Instantly share code, notes, and snippets.

@abhshkdz
Created November 26, 2012 12:47
Show Gist options
  • Save abhshkdz/4148037 to your computer and use it in GitHub Desktop.
Save abhshkdz/4148037 to your computer and use it in GitHub Desktop.
Source nvm + tab completion
# 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