1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2024-05-19 19:29:04 -05:00
dotfiles/fish/functions/_nvm_version_deactivate.fish
2023-10-04 09:57:23 -07:00

6 lines
239 B
Fish

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