Show k8s context in the prompt
This commit is contained in:
parent
f836c08398
commit
8dc1cc775b
|
@ -152,8 +152,8 @@ prompt_battery() {
|
|||
# K8s
|
||||
POWERLEVEL9K_KUBECTL_CONTEXT="prompt_kubectl_context"
|
||||
prompt_kubectl_context() {
|
||||
if [[ -v KUBECTL_SHOW_CONTEXT ]]
|
||||
if [[ -n $KUBECONFIG ]]
|
||||
then
|
||||
prompt_segment $DEFAULT_COLOR blue_COLOR "$KUBECTL_SHOW_CONTEXT"
|
||||
prompt_segment $DEFAULT_COLOR blue_COLOR "k8s-$KUBE_PROFILE"
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -30,10 +30,10 @@ COMPLETION_WAITING_DOTS="true"
|
|||
HIST_STAMPS="dd/mm/yyyy"
|
||||
|
||||
# Plugins
|
||||
plugins=(git colored-man-pages sprunge gpg-agent pip urlencode ssh-agent aws)
|
||||
plugins=(git colored-man-pages sprunge gpg-agent pip ssh-agent aws gitfast kube)
|
||||
|
||||
# Path
|
||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/sbin:/sbin:/usr/local/bin:$HOME/Scripts/bin/"
|
||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/sbin:/sbin:/usr/local/bin:$HOME/Scripts/bin/:/opt/go/bin"
|
||||
export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# Usar oh-my-zsh
|
||||
|
@ -75,7 +75,7 @@ source ~/.fzf.zsh
|
|||
source ~/Instalados/z/z.sh
|
||||
source ~/Instalados/fz/fz.plugin.zsh
|
||||
source ~/Instalados/zsh-interactive-cd/zsh-interactive-cd.plugin.zsh
|
||||
# --select-1 automatically selects the item if there's only one
|
||||
# automatically selects the item if there's only one
|
||||
export FZF_CTRL_T_OPTS="--select-1 --exit-0"
|
||||
# The following example uses tree command to show the entries of the directory
|
||||
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
|
||||
|
|
Loading…
Reference in New Issue