dotfiles/files/fish/functions/_nvm_version_deactivate.fish

6 lines
239 B
Fish
Raw Normal View History

2023-02-23 13:47:06 +01:00
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