1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 05:49:26 +00:00

Add nodenv support to Node.js module

- Implementation from https://github.com/sorin-ionescu/prezto/pull/1001
- Documentation from https://github.com/sorin-ionescu/prezto/pull/1178
This commit is contained in:
Jamie Rolfs
2017-03-16 03:12:18 -07:00
committed by Kaleb Elwert
parent 2c1ad5bed1
commit 483447082b
3 changed files with 19 additions and 0 deletions

View File

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