This commit is contained in:
Daniel Bretoi 2017-04-16 05:17:49 +00:00 committed by GitHub
commit d622ec1c36
2 changed files with 21 additions and 0 deletions

View File

@ -354,6 +354,19 @@ add-zsh-hook chpwd load-nvmrc
load-nvmrc
```
## Other shells
You can run nvm from other shells by using the script provided in the bin
directory. It must remain relative to the install.
Add `<prefix>/bin` and `<prefix>/current/bin` to your PATH and use nvm transparantly.
### Example [fish-shell](http://fishshell.com/) config:
Where nvm is installed at `~/.nvm`
set -x fish_user_paths $PATH $NVM_DIR/current/bin $NVM_DIR/bin
## License
nvm is released under the MIT license.

8
bin/nvm Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
export NVM_SYMLINK_CURRENT=true
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ${DIR}/../nvm.sh;
nvm $@