Skip to content

Instantly share code, notes, and snippets.

@josefaidt
Created January 11, 2019 21:49
Show Gist options
  • Save josefaidt/655293ff54dc0b572588821071fda744 to your computer and use it in GitHub Desktop.
Save josefaidt/655293ff54dc0b572588821071fda744 to your computer and use it in GitHub Desktop.
fish shell wrapper for nvm; add to `config.fish` or to functions directory
# need to install Fisher via `curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish`
# need to install bass via `fisher add edc/bass`
set LATEST_NVM (ls -t /usr/local/Cellar/nvm | head -1)
function nvm
bass source /usr/local/Cellar/nvm/{$LATEST_NVM}/nvm.sh --no-use ';' nvm $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment