diff --git a/functions/_tide_item_toolbox.fish b/functions/_tide_item_toolbox.fish new file mode 100644 index 0000000..c1cadf7 --- /dev/null +++ b/functions/_tide_item_toolbox.fish @@ -0,0 +1,3 @@ +function _tide_item_toolbox + test -e /run/.toolboxenv && _tide_print_item toolbox $tide_toolbox_icon +end diff --git a/functions/_tide_remove_unusable_items.fish b/functions/_tide_remove_unusable_items.fish index d885cf4..a7af602 100644 --- a/functions/_tide_remove_unusable_items.fish +++ b/functions/_tide_remove_unusable_items.fish @@ -1,6 +1,6 @@ function _tide_remove_unusable_items # Remove tool-specific items for tools the machine doesn't have installed - for item in chruby git go kubectl node php rustc terraform virtual_env + for item in chruby git go kubectl node php rustc terraform toolbox virtual_env set -l cli_names $item switch $item case virtual_env diff --git a/functions/tide/configure/configs/classic.fish b/functions/tide/configure/configs/classic.fish index 2b1efc5..892fb28 100644 --- a/functions/tide/configure/configs/classic.fish +++ b/functions/tide/configure/configs/classic.fish @@ -70,7 +70,7 @@ tide_pwd_icon_home tide_pwd_icon_unwritable '' tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json tide_right_prompt_frame_enabled true -tide_right_prompt_items status cmd_duration context jobs node virtual_env rustc php chruby go kubectl terraform vi_mode +tide_right_prompt_items status cmd_duration context jobs node virtual_env rustc php chruby go kubectl toolbox terraform vi_mode tide_right_prompt_prefix '' tide_right_prompt_separator_diff_color '' tide_right_prompt_separator_same_color '' @@ -94,6 +94,9 @@ tide_terraform_icon tide_time_bg_color 444444 tide_time_color 5F8787 tide_time_format '%T' +tide_toolbox_bg_color 444444 +tide_toolbox_color 613583 +tide_toolbox_icon '⬢ ' tide_vi_mode_bg_color_default 444444 tide_vi_mode_bg_color_replace 444444 tide_vi_mode_bg_color_visual 444444 diff --git a/functions/tide/configure/configs/classic_16color.fish b/functions/tide/configure/configs/classic_16color.fish index 34fb0bc..13b30a6 100644 --- a/functions/tide/configure/configs/classic_16color.fish +++ b/functions/tide/configure/configs/classic_16color.fish @@ -51,6 +51,8 @@ tide_terraform_bg_color black tide_terraform_color magenta tide_time_bg_color black tide_time_color brblack +tide_toolbox_bg_color black +tide_toolbox_color magenta tide_vi_mode_bg_color_default black tide_vi_mode_bg_color_replace black tide_vi_mode_bg_color_visual black diff --git a/functions/tide/configure/configs/lean.fish b/functions/tide/configure/configs/lean.fish index 052c4d3..cb8f631 100644 --- a/functions/tide/configure/configs/lean.fish +++ b/functions/tide/configure/configs/lean.fish @@ -70,7 +70,7 @@ tide_pwd_icon_home tide_pwd_icon_unwritable '' tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json tide_right_prompt_frame_enabled false -tide_right_prompt_items status cmd_duration context jobs node virtual_env rustc php chruby go kubectl terraform +tide_right_prompt_items status cmd_duration context jobs node virtual_env rustc php chruby go kubectl toolbox terraform tide_right_prompt_prefix ' ' tide_right_prompt_separator_diff_color ' ' tide_right_prompt_separator_same_color ' ' @@ -94,6 +94,9 @@ tide_terraform_icon tide_time_bg_color normal tide_time_color 5F8787 tide_time_format '%T' +tide_toolbox_bg_color normal +tide_toolbox_color 613583 +tide_toolbox_icon '⬢ ' tide_vi_mode_bg_color_default tide_vi_mode_bg_color_replace tide_vi_mode_bg_color_visual diff --git a/functions/tide/configure/configs/lean_16color.fish b/functions/tide/configure/configs/lean_16color.fish index a1c1407..5e03df3 100644 --- a/functions/tide/configure/configs/lean_16color.fish +++ b/functions/tide/configure/configs/lean_16color.fish @@ -51,6 +51,8 @@ tide_terraform_bg_color normal tide_terraform_color magenta tide_time_bg_color normal tide_time_color brblack +tide_toolbox_bg_color normal +tide_toolbox_color magenta tide_vi_mode_bg_color_default normal tide_vi_mode_bg_color_replace normal tide_vi_mode_bg_color_visual normal diff --git a/functions/tide/configure/configs/rainbow.fish b/functions/tide/configure/configs/rainbow.fish index 24aaf3d..5cd9d70 100644 --- a/functions/tide/configure/configs/rainbow.fish +++ b/functions/tide/configure/configs/rainbow.fish @@ -70,7 +70,7 @@ tide_pwd_icon_home tide_pwd_icon_unwritable '' tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json tide_right_prompt_frame_enabled true -tide_right_prompt_items status cmd_duration context jobs node virtual_env rustc php chruby go kubectl terraform vi_mode +tide_right_prompt_items status cmd_duration context jobs node virtual_env rustc php chruby go kubectl toolbox terraform vi_mode tide_right_prompt_prefix '' tide_right_prompt_separator_diff_color '' tide_right_prompt_separator_same_color '' @@ -94,6 +94,9 @@ tide_terraform_icon tide_time_bg_color D3D7CF tide_time_color 000000 tide_time_format '%T' +tide_toolbox_bg_color 613583 +tide_toolbox_color 000000 +tide_toolbox_icon '⬢ ' tide_vi_mode_bg_color_default 008000 tide_vi_mode_bg_color_replace 808000 tide_vi_mode_bg_color_visual 000080 diff --git a/functions/tide/configure/configs/rainbow_16color.fish b/functions/tide/configure/configs/rainbow_16color.fish index 61588c7..c408e0e 100644 --- a/functions/tide/configure/configs/rainbow_16color.fish +++ b/functions/tide/configure/configs/rainbow_16color.fish @@ -51,6 +51,8 @@ tide_terraform_bg_color magenta tide_terraform_color black tide_time_bg_color white tide_time_color black +tide_toolbox_bg_color magenta +tide_toolbox_color black tide_vi_mode_bg_color_default green tide_vi_mode_bg_color_replace yellow tide_vi_mode_bg_color_visual blue