From ea95d48b7e6c0ba5f248fd303671029a4456e730 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Thu, 8 Sep 2022 08:47:13 +0200 Subject: [PATCH] (zsh) Add configuration for kubectl management --- .zshrc | 7 +++++++ 1 file changed, 7 insertions(+) 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