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.
This commit is contained in:
parent
bf9dbfd5b9
commit
6e0df6210a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue