1
0
Fork 0

Don't set node-info if version is 'none'

This is done to make it easier to not show node-info in themes
when no node version is currently in use. This is consistent with
how the Python module's python-info works.
pull/650/head
Trevor Bekolay 10 years ago
parent bf9dbfd5b9
commit 6e0df6210a

@ -17,7 +17,7 @@ if (( $+functions[nvm_version] )); then
version="${$(nvm_version)#v}"
fi
if [[ -n "$version" ]]; then
if [[ -n "$version" && $version != 'none' ]]; 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