powerlvel10k

This commit is contained in:
Bartek Stalewski 2020-01-15 14:27:20 +01:00
parent c5e00e68cf
commit e237442a7f
7 changed files with 1106 additions and 17 deletions

View file

@ -1,18 +0,0 @@
slimline::section::k8s_namespace::precmd() {
unset slimline_section_k8s_namespace_output
}
slimline::section::k8s_namespace::async_task() {
kubectl config view --minify --output 'jsonpath={..namespace}'
}
slimline::section::k8s_namespace::async_task_complete() {
slimline_section_k8s_namespace_output=$2
}
slimline::section::k8s_namespace::render() {
[[ -z "${slimline_section_k8s_namespace_output}" ]] && return
slimline::utils::expand "k8s_namespace" "ns:%F{blue}|output|%f" \
"output" "${slimline_section_k8s_namespace_output}"
}