Slightly tweak logic (minor; superficial)
Change originally part of: 12e225afef
More information in that commit's message.
pull/1840/head
parent
6662cadfe8
commit
d43975b508
|
|
@ -181,10 +181,8 @@ function scm_prompt_info_common {
|
||||||
}
|
}
|
||||||
|
|
||||||
function terraform_workspace_prompt {
|
function terraform_workspace_prompt {
|
||||||
if _command_exists terraform; then
|
if _command_exists terraform && [ -d .terraform ]; then
|
||||||
if [ -d .terraform ]; then
|
echo -e "$(terraform workspace show 2> /dev/null)"
|
||||||
echo -e "$(terraform workspace show 2> /dev/null)"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue