diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-04 08:44:51 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-04 08:44:51 +0300 |
commit | 06ed564092ac64e77e1fa83398e98d92cf1d9c0d (patch) | |
tree | 2b5d8520d5f1c63aed0b0a16648d3720e389bd44 /internal/p10k.zsh | |
parent | 2d74ac9d069ff58b984f4818a2fb743b0059b3ed (diff) | |
parent | 882cede0aec99f58ccaf8d0765688bfee7b198fb (diff) |
Merge branch 'terraform-show-default' of https://github.com/ancarpan/powerlevel10k into ancarpan-terraform-show-default
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index a7e3f77e..4f635df1 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4666,7 +4666,8 @@ function prompt_terraform() { if [[ -z $TF_WORKSPACE ]]; then _p9k_read_word ${${TF_DATA_DIR:-.terraform}:A}/environment && ws=$_p9k__ret fi - [[ $ws == (|default) ]] && return + [[ $ws == '' ]] && return + [[ ($ws == 'default') && ( ! ${_POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT_WS} ) ]] && return local pat class for pat class in "${_POWERLEVEL9K_TERRAFORM_CLASSES[@]}"; do if [[ $ws == ${~pat} ]]; then @@ -7114,6 +7115,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_WS 0 _p9k_declare -a POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES -- 'service_account:*' SERVICE_ACCOUNT # Specifies the format of java version. # |