mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-10-31 23:11:13 +00:00
Fix node-info to show right node version
Currently, node-info shows nothing if $version is different than 'none'.
This commit is contained in:
parent
17a6124b43
commit
d020d34e59
@ -17,7 +17,7 @@ if (( $+functions[nvm_version] )); then
|
||||
version="${$(nvm_version)#v}"
|
||||
fi
|
||||
|
||||
if [[ "$version" == (none|) ]]; then
|
||||
if [[ "$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…
Reference in New Issue
Block a user