mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
3787c725f7
* Add Terraform item * Do not show default workspace in Terraform prompt * Add terraform to tide_right_prompt_items * Add terraform to _tide_remove_unusable_items * Fix test, use read, format Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
16 lines
519 B
Fish
16 lines
519 B
Fish
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
|
|
set -l cli_names $item
|
|
switch $item
|
|
case virtual_env
|
|
set cli_names python python3
|
|
end
|
|
|
|
if not type --query $cli_names
|
|
_tide_find_and_remove $item tide_left_prompt_items
|
|
_tide_find_and_remove $item tide_right_prompt_items
|
|
end
|
|
end
|
|
end
|