Only check for used unusable items

This commit is contained in:
Ilan Cosman 2023-06-18 12:34:47 -07:00
parent 447945d2cf
commit bc613c8502

View File

@ -2,6 +2,8 @@ function _tide_remove_unusable_items
# Remove tool-specific items for tools the machine doesn't have installed # Remove tool-specific items for tools the machine doesn't have installed
set -l removed_items 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 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 set -l cli_names $item
switch $item switch $item
case distrobox # there is no 'distrobox' command inside the container case distrobox # there is no 'distrobox' command inside the container