BASH_ARGV[0] doesn't work in ZSH
This commit is contained in:
parent
8e0406e95b
commit
95c8e4fbac
4
nvm.sh
4
nvm.sh
|
|
@ -5,8 +5,8 @@
|
||||||
# Implemented by Tim Caswell <tim@creationix.com>
|
# Implemented by Tim Caswell <tim@creationix.com>
|
||||||
# with much bash help from Matthew Ranney
|
# with much bash help from Matthew Ranney
|
||||||
|
|
||||||
# Auto detect the NVM_DIR using magic bash 3.x stuff
|
eval last=\${$#}
|
||||||
export NVM_DIR=$(dirname ${BASH_ARGV[0]})
|
export NVM_DIR=$(dirname $last)
|
||||||
|
|
||||||
nvm()
|
nvm()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue