mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
add nvm script for use by other shells
This commit is contained in:
parent
afba4e08fd
commit
452fbd5162
@ -98,6 +98,19 @@ To use a mirror of the node binaries, set `$NVM_NODEJS_ORG_MIRROR`:
|
|||||||
|
|
||||||
`nvm use` will not, by default, create a "current" symlink. Set `$NVM_SYMLINK_CURRENT` to "true" to enable this behavior, which is sometimes useful for IDEs.
|
`nvm use` will not, by default, create a "current" symlink. Set `$NVM_SYMLINK_CURRENT` to "true" to enable this behavior, which is sometimes useful for IDEs.
|
||||||
|
|
||||||
|
## 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 $HOME/.nvm/current/bin $HOME/.nvm/bin
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
nvm is released under the MIT license.
|
nvm is released under the MIT license.
|
||||||
|
Loading…
Reference in New Issue
Block a user