Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ Refresh your shell and you are good to go!
refresh
```

If you have installed nvm using a package manager you need to specify where is been installed, add the following line to your `~/.config/fish/config.fish`

```fish
set -g nvm_prefix /path/to/nvm
```
In this case, you don't need to set the `NVM_DIR` where the node versions will be installed, by default will be `~/.nvm`, but you can customize it if you want.

**Note** [Brew](https://brew.sh/) users don't have set up it, the plugin auto-detects it and set up the variable accordingly.

# License

[MIT][mit] © [Derek Willian Stavis][author] et [al][contributors]
Expand Down
2 changes: 1 addition & 1 deletion init.fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function init -a path --on-event init_nvm
if type -q fenv
set -q NVM_DIR; or set -gx NVM_DIR ~/.nvm
set -g nvm_prefix $NVM_DIR
set -q nvm_prefix; or set -g nvm_prefix $NVM_DIR

type -q brew;
and test -e (brew --prefix)/Cellar/nvm;
Expand Down