From d43975b508bae30e3c3809a613ec4eb36cc079b1 Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Wed, 17 Feb 2021 23:02:42 +0000 Subject: [PATCH] Slightly tweak logic (minor; superficial) Change originally part of: 12e225afefbe77a2fa478f9fb0425d353b5a4cc0 More information in that commit's message. --- themes/base.theme.bash | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 }