From 589c679045eb7dd8f9f8c389d60c8410495f638b Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 28 Jan 2020 10:00:15 +0100 Subject: [PATCH] add POWERLEVEL9K_GOENV_SOURCES to config templates --- config/p10k-classic.zsh | 5 ++++- config/p10k-lean-8colors.zsh | 5 ++++- config/p10k-lean.zsh | 5 ++++- config/p10k-rainbow.zsh | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 48568190..5cc282a9 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -696,7 +696,10 @@ ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################ # Goenv color. typeset -g POWERLEVEL9K_GOENV_FOREGROUND=37 - # Don't show the current Go version if it's the same as global. + # Hide go version if it doesn't come from one of these sources. + typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) + # If set to false, hide go version if it's the same as global: + # $(goenv version-name) == $(goenv global). typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false # Custom icon. # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐' diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh index eb2635e1..acb922c0 100644 --- a/config/p10k-lean-8colors.zsh +++ b/config/p10k-lean-8colors.zsh @@ -675,7 +675,10 @@ ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################ # Goenv color. typeset -g POWERLEVEL9K_GOENV_FOREGROUND=6 - # Don't show the current Go version if it's the same as global. + # Hide go version if it doesn't come from one of these sources. + typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) + # If set to false, hide go version if it's the same as global: + # $(goenv version-name) == $(goenv global). typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false # Custom icon. # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐' diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index a527dce3..018e6302 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -675,7 +675,10 @@ ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################ # Goenv color. typeset -g POWERLEVEL9K_GOENV_FOREGROUND=37 - # Don't show the current Go version if it's the same as global. + # Hide go version if it doesn't come from one of these sources. + typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) + # If set to false, hide go version if it's the same as global: + # $(goenv version-name) == $(goenv global). typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false # Custom icon. # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐' diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index 24fff870..808236e9 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -715,7 +715,10 @@ # Goenv color. # typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0 # typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4 - # Don't show the current Go version if it's the same as global. + # Hide go version if it doesn't come from one of these sources. + typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) + # If set to false, hide go version if it's the same as global: + # $(goenv version-name) == $(goenv global). typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false # Custom icon. # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐'