DEV Community


Posted on

fish tips

After install nvm on Mac with brew adding

  export NVM_DIR="$HOME/.nvm"
  [ -s "/usr/local/opt/nvm/" ] && . "/usr/local/opt/nvm/"  # 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 --create-dirs -sLo ~/.config/fish/functions/

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)
       nvm use 12
       nvm use lts
       nvm use latest
       nvm use dubnium
       nvm ls '^1|9$'
       nvm ls 10
       nvm <file

Top comments (0)