This file contains 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
function nvm | |
if [ -z $argv[1] ] | |
bash -lic 'nvm' | |
# setting the path for default version | |
fish_add_path -m $(bash -lic 'dirname `nvm which default`') | |
else if [ $argv[1] = use ] | |
# setting the path for version $argv[2] | |
fish_add_path -m $(bash -lic "dirname `nvm which $argv[2]`") | |
else | |
# executing command $argv[1] |