From 66a9f01a0e9b0b4224e13a787bd843b57e79a75e Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Fri, 25 Feb 2011 09:17:27 -0800 Subject: [PATCH] Fix for ZSH by wavded --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 2053719..a594381 100644 --- a/nvm.sh +++ b/nvm.sh @@ -6,7 +6,7 @@ # with much bash help from Matthew Ranney # Auto detect the NVM_DIR using magic bash 3.x stuff -export NVM_DIR=$(dirname ${BASH_ARGV[0]}) +export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd) nvm() {