Skip to content

Commit

Permalink
Disable node-info output when value is system.
Browse files Browse the repository at this point in the history
This makes the behavior consistent with rbenv and pyenv.
  • Loading branch information
mkcode authored and indrajitr committed Mar 18, 2019
1 parent b8d7e2c commit 1f4601e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/node/functions/node-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1f4601e

Please sign in to comment.