From dc19cf45bfbcc317124663b616a521b4b5cad1c9 Mon Sep 17 00:00:00 2001 From: hophacker Date: Thu, 26 Dec 2019 22:50:47 +0800 Subject: [PATCH] add kg hg --- zsh/functions.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 1a17f2a..97bf795 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -250,6 +250,7 @@ function k() { shift $((OPTIND-1)) kubectl $* --kubeconfig=$HOME/.kube/${CONTEXT}_config } +alias kg="k -c qcloud" function h() { CONTEXT=gcloud while getopts ":c:" opt; do @@ -267,6 +268,7 @@ function h() { esac helm $* $TLS --kubeconfig $HOME/.kube/${CONTEXT}_config } +alias hg="h -c qcloud" function kexec { RAN=false CONTEXT=gcloud