DEV Community

loading...

fish tips

Kentaro0919
・1 min read

After install nvm on Mac with brew adding


  export NVM_DIR="$HOME/.nvm"
  [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"  # This loads nvm
  [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

to dot file does not work.

In 2020-07-09 I did

 curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish

fisher add jorgebucaran/fish-nvm

and nvm works

nvm                                                                                                                     11:20:59
nvm: version or .nvmrc file missing
usage: nvm --help           Show this help
       nvm --version        Show the current version of nvm
       nvm ls [<regex>]     List available versions matching <regex>
       nvm use <version>    Download <version> and modify PATH to use it
       nvm                  Use version in .nvmrc (or stdin if not a tty)
examples:
       nvm use 12
       nvm use lts
       nvm use latest
       nvm use dubnium
       nvm ls '^1|9$'
       nvm ls 10
       nvm <file

Discussion (0)