DEV Community

Kentaro0919
Kentaro0919

Posted on

1 2

fish tips

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

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs