Created
January 11, 2019 21:49
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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