Browse Source

`nvm version` and `nvm ls` not correctly reporting current version on both zsh and bash.

master
Chakrit Wichian 13 years ago
parent
commit
a49f77135a
  1. 3
      nvm.sh

3
nvm.sh

@ -38,7 +38,8 @@ nvm_ls() @@ -38,7 +38,8 @@ nvm_ls()
PATTERN=$1
VERSIONS=''
if [ "$PATTERN" = 'current' ]; then
VERSION=`node -v 2>/dev/null`
echo `node -v 2>/dev/null`
return
fi
if [ -f "$NVM_DIR/alias/$PATTERN" ]; then

Loading…
Cancel
Save