Improve shell start-up time by lazy-loading various tools

This commit is contained in:
2020-04-26 21:59:25 +01:00
parent 4f4ac73ca3
commit ab88f2cb66
4 changed files with 72 additions and 33 deletions

View File

@@ -7,5 +7,9 @@ alias hl="helm"
alias mk="minikube"
if (( $+commands[kubectl] )); then
eval "$(kubectl completion zsh)"
# lazy-load kubectl setup
_kubectl() {
unset -f _kubectl
eval "$(command kubectl completion zsh)"
}
fi