From ce445772ce2d33a3217debbf06830c14f57de977 Mon Sep 17 00:00:00 2001 From: Harrison Kiang Date: Thu, 5 Mar 2020 21:58:35 -0600 Subject: [PATCH] change name --- plugins/kubectl/kubectl.plugin.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index e58a33520..7fedc51eb 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -82,18 +82,18 @@ alias kgsec='kubectl get secret' alias kgseca='kubectl get secret --all-namespaces' alias kdsec='kubectl describe secret' alias kdelsec='kubectl delete secret' -alias kdecs=' -_kdecs() { +alias kdecsec=' +_kdecsec() { if [ $(jq --version) != "jq-1.6" ]; then - echo "kdecs requires jq-1.6 to use the base64d format"; - unset -f _kdecs + echo "kdecsec requires jq-1.6 to use the base64d format"; + unset -f _kdecsec return 1 fi kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )"; - unset -f _kdecs + unset -f _kdecsec return 0 }; -_kdecs' +_kdecsec' # Deployment management. alias kgd='kubectl get deployment'