diff --git a/modules/node/functions/node-info b/modules/node/functions/node-info index 2af5042e..9eb2593d 100644 --- a/modules/node/functions/node-info +++ b/modules/node/functions/node-info @@ -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"