Browse Source

Disable node-info output when value is system.

This makes the behavior consistent with rbenv and pyenv.
master
Chris Ewald 5 years ago committed by Indrajit Raychaudhuri
parent
commit
a9369d64a8
  1. 2
      modules/node/functions/node-info

2
modules/node/functions/node-info

@ -23,7 +23,7 @@ elif (( $+commands[node] )) ; then @@ -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…
Cancel
Save