From 6e0df6210a8ee2b40084f1209591c20a98f22351 Mon Sep 17 00:00:00 2001 From: Trevor Bekolay Date: Fri, 8 Aug 2014 15:21:18 -0400 Subject: [PATCH] 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. --- modules/node/functions/node-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"