merge: work
This commit is contained in:
commit
4c8909d75d
2 changed files with 7 additions and 2 deletions
|
@ -13,8 +13,9 @@ _update_KUBE_PS1() {
|
|||
KUBE_PS1_NS="$(kubectl config view --minify -o jsonpath='{..namespace}')"
|
||||
}
|
||||
|
||||
precmd() {
|
||||
kube_ps1() {
|
||||
_update_KUBE_PS1
|
||||
|
||||
local ctx="$KUBE_PS1_CTX"
|
||||
local ns="$KUBE_PS1_NS"
|
||||
local symbol='\u2388 '
|
||||
|
@ -28,6 +29,10 @@ precmd() {
|
|||
echo "$bg$symbol$ctx$sep$ns$end$reset"
|
||||
}
|
||||
|
||||
precmd() {
|
||||
#kube_ps1
|
||||
}
|
||||
|
||||
PROMPT='%(?::%{$fg_bold[red]%}%? )%{$fg_bold[cyan]%}%~%{$reset_color%} $(git_prompt_info)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue