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
jqp
konf
krew
kubecolor
kubeconform
kubectl
@ -27,6 +26,16 @@
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 = {
jq = "gojq";
kcn = "konf ns";

View file

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