From 016c96d8af4c944fb2b9fc0c673f5130472a7977 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 15 Nov 2023 08:58:19 +0800 Subject: Update aliases and add fisher --- .config/fish/functions/_nvm_version_deactivate.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .config/fish/functions/_nvm_version_deactivate.fish (limited to '.config/fish/functions/_nvm_version_deactivate.fish') diff --git a/.config/fish/functions/_nvm_version_deactivate.fish b/.config/fish/functions/_nvm_version_deactivate.fish new file mode 100644 index 0000000..24dd36e --- /dev/null +++ b/.config/fish/functions/_nvm_version_deactivate.fish @@ -0,0 +1,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 -- cgit v1.2.3