diff options
| author | Indrajith K L | 2024-06-27 17:51:18 +0530 |
|---|---|---|
| committer | Indrajith K L | 2024-06-27 17:51:18 +0530 |
| commit | 57eb70137b5bbcdabdc0f02eea5477b3e5f845a1 (patch) | |
| tree | e78187146c506d5a640545dee99cc3e9860e25dc /fish/functions/_nvm_version_deactivate.fish | |
| download | dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.tar.gz dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.tar.bz2 dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.zip | |
Adds Arch Linux dotfiles
Diffstat (limited to 'fish/functions/_nvm_version_deactivate.fish')
| -rw-r--r-- | fish/functions/_nvm_version_deactivate.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fish/functions/_nvm_version_deactivate.fish b/fish/functions/_nvm_version_deactivate.fish new file mode 100644 index 000000000..24dd36e06 --- /dev/null +++ b/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 |
