mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-12 23:21:52 +00:00
![]() In zsh nvm fails to deduce nvm's directory from nvm.sh, because `$BASH_SOURCE` is not present in zsh. Use the directory of `$0`, if its filename is `nvm.sh`. We use `$BASH_SOUCE` in bash, `$0` in zsh (and similar) and fallback to `~/.nvm` otherwise. |
||
---|---|---|
.. | ||
Aliases | ||
Listing versions | ||
$BASH_SOURCE should not be a problem in sh and zsh | ||
Running "nvm alias" should create a file in the alias directory. | ||
Running "nvm current" should display current nvm environment. | ||
Running "nvm deactivate" should unset the nvm environment variables. | ||
Running "nvm unalias" should remove the alias file. | ||
Running "nvm uninstall" should remove the appropriate directory. | ||
setup | ||
setup_dir | ||
Sourcing nvm.sh from another path than the default one should not show find errors | ||
Sourcing nvm.sh should make the nvm command available. | ||
teardown | ||
teardown_dir |