mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 02:19:25 +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:
committed by
Kaleb Elwert
parent
2c1ad5bed1
commit
483447082b
@ -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
|
||||
|
Reference in New Issue
Block a user