From 20b87731de26638f40dce1bfc89f5b5a207e090f Mon Sep 17 00:00:00 2001 From: Patrick Tavares Date: Mon, 16 Aug 2021 18:46:46 +0200 Subject: add availability to display or not Terraform version Show Terraform version segment only when *.tf files are present in current directory --- config/p10k-lean-8colors.zsh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/p10k-lean-8colors.zsh') 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. -- cgit v1.2.3