BASH_ARGV[0] doesn't work in ZSH

This commit is contained in:
Marc Harter 2011-01-11 10:53:53 -06:00
parent 8e0406e95b
commit 95c8e4fbac

4
nvm.sh
View File

@ -5,8 +5,8 @@
# Implemented by Tim Caswell <tim@creationix.com>
# 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]})
eval last=\${$#}
export NVM_DIR=$(dirname $last)
nvm()
{