summaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
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/p10k-lean.zsh
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/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh2
1 files changed, 2 insertions, 0 deletions
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.