From bc613c850209cca058c9e2529981c03a96c9710a Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Sun, 18 Jun 2023 12:34:47 -0700 Subject: [PATCH] Only check for used unusable items --- functions/_tide_remove_unusable_items.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/_tide_remove_unusable_items.fish b/functions/_tide_remove_unusable_items.fish index 43430dd..a2e5698 100644 --- a/functions/_tide_remove_unusable_items.fish +++ b/functions/_tide_remove_unusable_items.fish @@ -2,6 +2,8 @@ function _tide_remove_unusable_items # Remove tool-specific items for tools the machine doesn't have installed set -l removed_items for item in aws chruby crystal direnv distrobox docker elixir gcloud git go java kubectl nix_shell node php pulumi rustc terraform toolbox virtual_env + contains $item $tide_left_prompt_items $tide_right_prompt_items || continue + set -l cli_names $item switch $item case distrobox # there is no 'distrobox' command inside the container