diff --git a/themes/base.theme.bash b/themes/base.theme.bash index f0f74a7d..94400a0f 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -181,10 +181,8 @@ function scm_prompt_info_common { } function terraform_workspace_prompt { - if _command_exists terraform; then - if [ -d .terraform ]; then - echo -e "$(terraform workspace show 2> /dev/null)" - fi + if _command_exists terraform && [ -d .terraform ]; then + echo -e "$(terraform workspace show 2> /dev/null)" fi }