Return to Snippet

Revision: 59872
at October 5, 2012 22:28 by LucasRinaldi


Initial Code
# 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

Initial URL

                                

Initial Description
This commands works considering that you are on a linux terminal. Change the variable $NVM_HOME to the path that your NVM is installed.

Initial Title
Sourcing NVM, adding NVM Tab Completion and NPM Tab Completion

Initial Tags

                                

Initial Language
Bash