chore: Update setup.sh

This commit is contained in:
Fabio Lenherr / DashieTM 2024-02-11 15:53:22 +01:00
parent 45ca8d534f
commit 7884a29617
32 changed files with 296 additions and 151 deletions

View file

@ -1,9 +1,13 @@
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 docker git go java kubectl nix_shell node php 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
switch $item
case distrobox # there is no 'distrobox' command inside the container
set cli_names distrobox-export # 'distrobox-export' and 'distrobox-host-exec' are available
case virtual_env
set cli_names python python3
case nix_shell