support for new version of nodenv
This commit is contained in:
parent
3eaefdb7f0
commit
ef1a8d1a8d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue