Add command-exists shell helper

This commit is contained in:
2020-05-23 19:16:06 +01:00
parent ba559be4bc
commit d4d64f654e
7 changed files with 16 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ alias kc="kubectl"
alias hl="helm"
alias mk="minikube"
if (( $+commands[kubectl] )); then
if command-exists kubectl; then
# lazy-load kubectl setup
_kubectl() {
unset -f _kubectl