ohmyzsh/plugins/nvm/nvm.plugin.zsh
Tyler Cross 73c160fdca Allow setting path to nvm install dir.
- same behavior as the two lines the nvm install script puts in bashrc
- set NVM_DIR to path where nvm is installed
- allows for global installs in /opt or /usr/local
2015-04-28 06:35:27 -04:00

4 lines
136 B
Bash

# The addition 'nvm install' attempts in ~/.profile
NVM_DIR="${NVM_DIR:=~/.nvm}"
[[ -s "${NVM_DIR}/nvm.sh" ]] && . "${NVM_DIR}/nvm.sh"