nvm: split out $NVM_DIR and $NVM_INSTALL_DIR

This commit is contained in:
Andrew Janke 2015-09-10 05:55:43 -04:00 committed by janke
commit 7f4707874f
3 changed files with 18 additions and 11 deletions

View file

@ -1,6 +1,5 @@
# get the nvm-controlled node.js version
function nvm_prompt_info() {
[[ -f "$NVM_DIR/nvm.sh" ]] || return
local nvm_prompt
which nvm &>/dev/null || return
nvm_prompt=$(nvm current)