aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-04 09:08:49 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-04 09:08:49 +0300
commit0c341b67024642b8f1741920d1ae5d760bc488b0 (patch)
tree012661b6bdfef4ad70a00b3bcbc4c0f6fd4d1111 /internal/p10k.zsh
parent2d74ac9d069ff58b984f4818a2fb743b0059b3ed (diff)
parent06ed564092ac64e77e1fa83398e98d92cf1d9c0d (diff)
Merge branch 'ancarpan-terraform-show-default'v1.12.0
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index a7e3f77e..22249727 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4666,7 +4666,7 @@ function prompt_terraform() {
if [[ -z $TF_WORKSPACE ]]; then
_p9k_read_word ${${TF_DATA_DIR:-.terraform}:A}/environment && ws=$_p9k__ret
fi
- [[ $ws == (|default) ]] && return
+ [[ -z $ws || $ws == default && $_POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT == 0 ]] && return
local pat class
for pat class in "${_POWERLEVEL9K_TERRAFORM_CLASSES[@]}"; do
if [[ $ws == ${~pat} ]]; then
@@ -7114,6 +7114,7 @@ _p9k_init_params() {
_p9k_declare -a POWERLEVEL9K_KUBECONTEXT_CLASSES --
_p9k_declare -a POWERLEVEL9K_AWS_CLASSES --
_p9k_declare -a POWERLEVEL9K_TERRAFORM_CLASSES --
+ _p9k_declare -b POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT 0
_p9k_declare -a POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES -- 'service_account:*' SERVICE_ACCOUNT
# Specifies the format of java version.
#