mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
another solution to get ZSH and BASH both to work
This commit is contained in:
parent
95c8e4fbac
commit
666e1794fa
3
nvm.sh
3
nvm.sh
@ -5,8 +5,7 @@
|
|||||||
# 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
|
||||||
|
|
||||||
eval last=\${$#}
|
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd)
|
||||||
export NVM_DIR=$(dirname $last)
|
|
||||||
|
|
||||||
nvm()
|
nvm()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user