mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 16:18:00 +00:00
Disable node-info output when value is system.
This makes the behavior consistent with rbenv and pyenv.
This commit is contained in:
parent
b8d7e2cad8
commit
1f4601e44c
@ -23,7 +23,7 @@ elif (( $+commands[node] )) ; then
|
||||
version="${$(node -v)#v}"
|
||||
fi
|
||||
|
||||
if [[ "$version" != (none|) ]]; then
|
||||
if [[ "$version" != (none|system) ]]; then
|
||||
zstyle -s ':prezto:module:node:info:version' format 'version_format'
|
||||
zformat -f version_formatted "$version_format" "v:$version"
|
||||
node_info[version]="$version_formatted"
|
||||
|
Loading…
Reference in New Issue
Block a user