feat(k8s): reenable client config

This commit is contained in:
winston 2024-03-07 13:41:11 +01:00
parent 6c531133e9
commit 4f24946d23
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 11 additions and 2 deletions

View file

@ -12,7 +12,6 @@
gojq gojq
jqp jqp
konf konf
krew
kubecolor kubecolor
kubeconform kubeconform
kubectl kubectl
@ -27,6 +26,16 @@
velero velero
]; ];
programs.zsh.initExtra = ''
# kubecolor
compdef kubecolor=kubectl
# konf
source <(konf-go shellwrapper zsh)
source <(konf completion zsh)
# ignore if konf store hasn't been initialized
konf set - >/dev/null 2>&1
'';
home.shellAliases = { home.shellAliases = {
jq = "gojq"; jq = "gojq";
kcn = "konf ns"; kcn = "konf ns";

View file

@ -151,7 +151,7 @@ in {
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
plugins = plugins =
["colored-man-pages" "colorize" "git"] ["colored-man-pages" "colorize" "git" "kubectl"]
++ lib.optionals pkgs.stdenv.isDarwin ["dash" "macos"]; ++ lib.optionals pkgs.stdenv.isDarwin ["dash" "macos"];
}; };
plugins = zshPlugins [ plugins = zshPlugins [