From 1b014472722c42432d1f37b4ab8c444075fbd44c Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 8 Jul 2016 21:31:16 +0100 Subject: [PATCH] Make NVM_DIR check consistent with others --- zsh-nvm.plugin.zsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 527fca8..76d12c8 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -1,6 +1,4 @@ -if [ -z "$NVM_DIR" ]; then - NVM_DIR="$HOME/.nvm" -fi +[[ -z "$NVM_DIR" ]] && NVM_DIR="$HOME/.nvm" _zsh_nvm_has() { type "$1" > /dev/null 2>&1