dotfiles/slackware/.config/fish/functions/_nvm_version_deactivate.fish
Ian Keane 9a6bfc1daf Restructure for symlink
This change makes it easier to recursively copy these config files into
a real home directory and also gets rid of empty folders
2022-06-07 13:47:55 -04:00

5 lines
233 B
Fish

function _nvm_version_deactivate --argument-names v
test "$nvm_current_version" = "$v" && set --erase nvm_current_version
set --local index (contains --index -- $nvm_data/$v/bin $PATH) &&
set --erase PATH[$index]
end