another solution to get ZSH and BASH both to work

This commit is contained in:
Marc Harter 2011-01-20 16:47:30 -06:00
parent 95c8e4fbac
commit 666e1794fa

3
nvm.sh
View File

@ -5,8 +5,7 @@
# Implemented by Tim Caswell <tim@creationix.com>
# with much bash help from Matthew Ranney
eval last=\${$#}
export NVM_DIR=$(dirname $last)
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd)
nvm()
{