diff --git a/.zshrc b/.zshrc index 41ab5d2..33f76a4 100644 --- a/.zshrc +++ b/.zshrc @@ -23,6 +23,8 @@ plugins=(git) source $ZSH/oh-my-zsh.sh +source <(kubectl completion zsh) + # User configuration # You may need to manually set your language environment @@ -100,6 +102,11 @@ alias gitcommiiiiiiiiiiiiiit='cz' alias clip='xclip -selection primary' +function kube-merge() { + cp ~/.kube/config ~/.kube/config.bak && + KUBECONFIG=~/.kube/config-nuuday:~/.kube/config-halia kubectl config view --flatten > ~/.kube/config +} + # alias wg-reload="f() {sudo bash -c 'cd /etc/wireguard && wg syncconf $1 <(wg-quick strip $1)'};f" function wg-reload() { sudo bash -c 'cd /etc/wireguard && wg syncconf $0 <(wg-quick strip $0)' $1