Skip to content

Commit

Permalink
Make node-info work without nvm/nodenv
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen428 authored and indrajitr committed Aug 1, 2018
1 parent 152b4a1 commit e064d5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/node/functions/node-info
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ if (( $+functions[nvm_version] )); then
version="${$(nvm_version)#v}"
elif (( $+commands[nodenv] )); then
version="${${$(nodenv version)#v}[(w)0]}"
elif (( $+commands[node] )) ; then
version="${$(node -v)#v}"
fi

if [[ "$version" != (none|) ]]; then
Expand Down

0 comments on commit e064d5c

Please sign in to comment.