support for new version of nodenv

This commit is contained in:
Sean Zeng 2015-11-04 12:47:25 -08:00
parent 3eaefdb7f0
commit ef1a8d1a8d

View file

@ -16,7 +16,7 @@ typeset -gA node_info
if (( $+functions[nvm_version] )); then
version="${$(nvm_version)#v}"
elif (( $+commands[nodenv] )); then
version="${$(nodenv version)#v}"
version="${${$(nodenv version)#v}[(w)0]}"
fi
if [[ "$version" != (none|) ]]; then