1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2024-12-22 19:09:57 -06:00
dotfiles/fish/functions/_nvm_version_deactivate.fish

6 lines
233 B
Fish
Raw Normal View History

2022-03-06 21:42:47 -06:00
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