From ef1a8d1a8de47e9927b75334d3e173638f72f175 Mon Sep 17 00:00:00 2001 From: Sean Zeng Date: Wed, 4 Nov 2015 12:47:25 -0800 Subject: [PATCH] support for new version of nodenv --- 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 14930a3b..e4cd52d0 100644 --- a/modules/node/functions/node-info +++ b/modules/node/functions/node-info @@ -16,7 +16,7 @@ typeset -gA node_info if (( $+functions[nvm_version] )); then version="${$(nvm_version)#v}" elif (( $+commands[nodenv] )); then - version="${$(nodenv version)#v}" + version="${${$(nodenv version)#v}[(w)0]}" fi if [[ "$version" != (none|) ]]; then