65f34ce80ed0aabe92ad3815ceb79db45004598b

Author
Roger Steneteg <36709673+rsteneteg@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

kube-ps1: fix color bleeding in prompt (#7915)

Diff

 1diff --git a/plugins/kube-ps1/kube-ps1.plugin.zsh b/plugins/kube-ps1/kube-ps1.plugin.zsh
 2index 8a751bda897e1530ecb3a83d806216d53a59e1a2..3cb21284abc522a30b40cec888b6fd0611d69974 100644
 3--- a/plugins/kube-ps1/kube-ps1.plugin.zsh
 4+++ b/plugins/kube-ps1/kube-ps1.plugin.zsh
 5@@ -41,9 +41,9 @@ KUBE_PS1_SUFFIX="${KUBE_PS1_SUFFIX-)}"
 6 KUBE_PS1_LAST_TIME=0
 7 KUBE_PS1_ENABLED=true
 8 
 9-KUBE_PS1_COLOR_SYMBOL="%F{blue}"
10-KUBE_PS1_COLOR_CONTEXT="%F{red}"
11-KUBE_PS1_COLOR_NS="%F{cyan}"
12+KUBE_PS1_COLOR_SYMBOL="%{$fg[blue]%}"
13+KUBE_PS1_COLOR_CONTEXT="%{$fg[red]%}"
14+KUBE_PS1_COLOR_NS="%{$fg[cyan]%}"
15 
16 _kube_ps1_binary_check() {
17   command -v "$1" >/dev/null