Slightly tweak logic (minor; superficial)

Change originally part of: 12e225afef
More information in that commit's message.
pull/1840/head
terminalforlife 2021-02-17 23:02:42 +00:00
parent 6662cadfe8
commit d43975b508
1 changed files with 2 additions and 4 deletions

View File

@ -181,11 +181,9 @@ function scm_prompt_info_common {
}
function terraform_workspace_prompt {
if _command_exists terraform; then
if [ -d .terraform ]; then
if _command_exists terraform && [ -d .terraform ]; then
echo -e "$(terraform workspace show 2> /dev/null)"
fi
fi
}
function git_prompt_minimal_info {