Permalink
Browse files

Fix for ZSH by wavded

  • Loading branch information...
1 parent f668d35 commit 66a9f01a0e9b0b4224e13a787bd843b57e79a75e Tim Caswell committed Feb 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 nvm.sh
View
@@ -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()
{

0 comments on commit 66a9f01

Please sign in to comment.