|
|
@ -183,8 +183,8 @@ Here's the relevant parameter for kubernetes context:
|
|
|
|
|
|
|
|
|
|
|
|
```zsh
|
|
|
|
```zsh
|
|
|
|
# Show prompt segment "kubecontext" only when the command you are typing
|
|
|
|
# Show prompt segment "kubecontext" only when the command you are typing
|
|
|
|
# invokes kubectl, helm, kubens, kubectx, oc, istioctl, kogito, k9s, helmfile, fluxctl or stern.
|
|
|
|
# invokes kubectl, helm, kubens, kubectx, oc, istioctl, kogito, k9s, helmfile, flux, fluxctl or stern.
|
|
|
|
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|fluxctl|stern'
|
|
|
|
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern'
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
To customize when different prompt segments are shown, open `~/.p10k.zsh`, search for
|
|
|
|
To customize when different prompt segments are shown, open `~/.p10k.zsh`, search for
|
|
|
@ -1015,8 +1015,8 @@ a relevant tool.
|
|
|
|
|
|
|
|
|
|
|
|
```zsh
|
|
|
|
```zsh
|
|
|
|
# Show prompt segment "kubecontext" only when the command you are typing
|
|
|
|
# Show prompt segment "kubecontext" only when the command you are typing
|
|
|
|
# invokes kubectl, helm, kubens, kubectx, oc, istioctl, kogito, k9s, helmfile, fluxctl or stern.
|
|
|
|
# invokes kubectl, helm, kubens, kubectx, oc, istioctl, kogito, k9s, helmfile, flux, fluxctl or stern.
|
|
|
|
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|fluxctl|stern'
|
|
|
|
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern'
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Configs created by `p10k configure` may contain parameters of this kind. To customize when different
|
|
|
|
Configs created by `p10k configure` may contain parameters of this kind. To customize when different
|
|
|
@ -1032,7 +1032,7 @@ function kube-toggle() {
|
|
|
|
if (( ${+POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND} )); then
|
|
|
|
if (( ${+POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND} )); then
|
|
|
|
unset POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND
|
|
|
|
unset POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND
|
|
|
|
else
|
|
|
|
else
|
|
|
|
POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|fluxctl|stern'
|
|
|
|
POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
p10k reload
|
|
|
|
p10k reload
|
|
|
|
if zle; then
|
|
|
|
if zle; then
|
|
|
|