FabioAntunes / fish-nvm

nvm wrapper for fish-shell
MIT License
511 stars 20 forks source link

nvm.sh must be linked/copied to $HOME/.nvm #45

Closed wlnirvana closed 4 years ago

wlnirvana commented 4 years ago

The brew formula leaves nvm.sh at $(brew --prefix nvm)/nvm.sh without linking it to~/.nvm/nvm.sh. Consequently, the following code fails to source the file properly.

set -q NVM_DIR; or set -gx NVM_DIR ~/.nvm
set -q nvm_prefix; or set -gx nvm_prefix $NVM_DIR

bass source $nvm_prefix/nvm.sh --no-use ';' nvm $argv
FabioAntunes commented 4 years ago

Brew is not the official way to install nvm but if still insist in doing so, just add: set -gx NVM_DIR (brew --prefix nvm)/nvm.sh to your config.fish