mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-21 20:00:07 +00:00
show kubecontext show for 'flux' (#1480)
Support for flux v2 CLI Co-authored-by: Chris Williams <chris.williams@amwell.com>
This commit is contained in:
parent
4bcc519547
commit
1e7be00e04
5 changed files with 11 additions and 11 deletions
14
README.md
14
README.md
|
@ -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
|
||||||
|
@ -598,13 +598,13 @@ applications on your system. Configure your terminal to use this font:
|
||||||
font = wezterm.font("MesloLGS NF"),
|
font = wezterm.font("MesloLGS NF"),
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
If the file already exists, only add the line with the font to the existing return.
|
If the file already exists, only add the line with the font to the existing return.
|
||||||
Also add the first line if it is not already present.
|
Also add the first line if it is not already present.
|
||||||
- **urxvt**: Create or open `~/.Xresources` and add the following line to it:
|
- **urxvt**: Create or open `~/.Xresources` and add the following line to it:
|
||||||
```text
|
```text
|
||||||
URxvt.font: xft:MesloLGS NF:size=11
|
URxvt.font: xft:MesloLGS NF:size=11
|
||||||
```
|
```
|
||||||
You can adjust the font size to your preference. After changing the configuration use `xrdb ~/.Xresources` to reload the config.
|
You can adjust the font size to your preference. After changing the configuration use `xrdb ~/.Xresources` to reload the config.
|
||||||
The new config is applied for all new terminals.
|
The new config is applied for all new terminals.
|
||||||
|
|
||||||
**IMPORTANT:** Run `p10k configure` after changing terminal font. The old `~/.p10k.zsh` may work
|
**IMPORTANT:** Run `p10k configure` after changing terminal font. The old `~/.p10k.zsh` may work
|
||||||
|
@ -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
|
||||||
|
|
|
@ -1207,7 +1207,7 @@
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
||||||
# Tip: Remove the next line to always show kubecontext.
|
# Tip: Remove the next line to always show kubecontext.
|
||||||
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'
|
||||||
|
|
||||||
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
||||||
# different contexts.
|
# different contexts.
|
||||||
|
|
|
@ -1155,7 +1155,7 @@
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
||||||
# Tip: Remove the next line to always show kubecontext.
|
# Tip: Remove the next line to always show kubecontext.
|
||||||
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'
|
||||||
|
|
||||||
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
||||||
# different contexts.
|
# different contexts.
|
||||||
|
|
|
@ -1151,7 +1151,7 @@
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
||||||
# Tip: Remove the next line to always show kubecontext.
|
# Tip: Remove the next line to always show kubecontext.
|
||||||
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'
|
||||||
|
|
||||||
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
||||||
# different contexts.
|
# different contexts.
|
||||||
|
|
|
@ -1274,7 +1274,7 @@
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
# Show kubecontext only when the the command you are typing invokes one of these tools.
|
||||||
# Tip: Remove the next line to always show kubecontext.
|
# Tip: Remove the next line to always show kubecontext.
|
||||||
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'
|
||||||
|
|
||||||
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
||||||
# different contexts.
|
# different contexts.
|
||||||
|
|
Loading…
Reference in a new issue