aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/functions/_nvm_version_deactivate.fish
blob: 24dd36e066a192fc6e32ae7afb24b45a70ac0613 (plain)
1
2
3
4
5
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