aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPatrick Tavares <tavarespatrick01@gmail.com>2021-08-16 19:46:46 +0300
committerPatrick Tavares <tavarespatrick01@gmail.com>2021-08-16 19:46:46 +0300
commit20b87731de26638f40dce1bfc89f5b5a207e090f (patch)
treef90d88185236254c15a7edeab9e650e4b469a037 /config
parent32e76e772173f1d2856ee4002f21607523221ce7 (diff)
add availability to display or not Terraform version
Show Terraform version segment only when *.tf files are present in current directory
Diffstat (limited to 'config')
-rw-r--r--config/p10k-classic.zsh2
-rw-r--r--config/p10k-lean-8colors.zsh2
-rw-r--r--config/p10k-lean.zsh2
-rw-r--r--config/p10k-rainbow.zsh2
4 files changed, 8 insertions, 0 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index 592d8a7b..3ccd335f 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -1206,6 +1206,8 @@
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
#############[ terraform_version: terraform version (https://www.terraform.io) ]##############
+ # Don't show terraform version if there is no "*.tf" files
+ typeset -g POWERLEVEL9K_TERRAFORM_VERSION_ALWAYS=false
# Terraform version color.
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=38
# Custom icon.
diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh
index 8e98757a..123a42c7 100644
--- a/config/p10k-lean-8colors.zsh
+++ b/config/p10k-lean-8colors.zsh
@@ -1274,6 +1274,8 @@
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
#############[ terraform_version: terraform version (https://www.terraform.io) ]##############
+ # Don't show terraform version if there is no "*.tf" files
+ typeset -g POWERLEVEL9K_TERRAFORM_VERSION_ALWAYS=false
# Terraform version color.
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4
# Custom icon.
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 5bfd77cc..698ffa78 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -1270,6 +1270,8 @@
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
#############[ terraform_version: terraform version (https://www.terraform.io) ]##############
+ # Don't show terraform version if there is no "*.tf" files
+ typeset -g POWERLEVEL9K_TERRAFORM_VERSION_ALWAYS=false
# Terraform version color.
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=38
# Custom icon.
diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh
index a580f300..1535cb39 100644
--- a/config/p10k-rainbow.zsh
+++ b/config/p10k-rainbow.zsh
@@ -1273,6 +1273,8 @@
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
#############[ terraform_version: terraform version (https://www.terraform.io) ]##############
+ # Don't show terraform version if there is no "*.tf" files
+ typeset -g POWERLEVEL9K_TERRAFORM_VERSION_ALWAYS=false
# Terraform version color.
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_BACKGROUND=0