1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-27 08:10:08 +00:00

change name

This commit is contained in:
Harrison Kiang 2020-03-05 21:58:35 -06:00
parent 21bac01e6d
commit ce445772ce

View file

@ -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'