feat(k8s): reenable client config
This commit is contained in:
parent
6c531133e9
commit
4f24946d23
2 changed files with 11 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -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 [
|
||||
|
|
Loading…
Reference in a new issue