diff --git a/functions/_tide_item_terraform.fish b/functions/_tide_item_terraform.fish index 8d99fb77..c079ce3b 100644 --- a/functions/_tide_item_terraform.fish +++ b/functions/_tide_item_terraform.fish @@ -1,6 +1,5 @@ function _tide_item_terraform - if path is $_tide_parent_dirs/.terraform - terraform workspace show | read -l workspace - test $workspace != default && _tide_print_item terraform $tide_terraform_icon' ' $workspace - end + path is $_tide_parent_dirs/.terraform && + terraform workspace show | string match -v default | read -l w && + _tide_print_item terraform $tide_terraform_icon' ' $w end