powerlvel10k
This commit is contained in:
parent
c5e00e68cf
commit
e237442a7f
7 changed files with 1106 additions and 17 deletions
18
legacy/slimline_k8s_ctx.zsh
Normal file
18
legacy/slimline_k8s_ctx.zsh
Normal file
|
@ -0,0 +1,18 @@
|
|||
slimline::section::k8s_context::precmd() {
|
||||
unset slimline_section_k8s_context_output
|
||||
}
|
||||
|
||||
slimline::section::k8s_context::async_task() {
|
||||
kubectl config current-context
|
||||
}
|
||||
|
||||
slimline::section::k8s_context::async_task_complete() {
|
||||
slimline_section_k8s_context_output=$2
|
||||
}
|
||||
|
||||
slimline::section::k8s_context::render() {
|
||||
[[ -z "${slimline_section_k8s_context_output}" ]] && return
|
||||
|
||||
slimline::utils::expand "k8s_context" "ctx:%F{blue}|output|%f" \
|
||||
"output" "${slimline_section_k8s_context_output}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue