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. | ||
| Sourcing nvm.sh from another path than the default one should not show find errors | ||
| Sourcing nvm.sh should make the nvm command available. | ||
| setup | ||
| setup_dir | ||
| teardown | ||
| teardown_dir | ||