From 5ce23eee2bbe6748fc3e7f717a733b7af5944f7c Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 4 Jan 2017 15:22:04 +0700 Subject: [PATCH] Make .nvmrc version command more concise --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 9eb98bb..53b45ab 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -159,7 +159,7 @@ _zsh_nvm_auto_use() { local nvmrc_path="$(nvm_find_nvmrc)" if [[ -n "$nvmrc_path" ]]; then - local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") + local nvmrc_node_version="$(nvm version $(cat "$nvmrc_path"))" if [[ "$nvmrc_node_version" != "N/A" ]]; then [[ "$nvmrc_node_version" != "$node_version" ]] && nvm use && export NVM_AUTO_USE_ACTIVE=true