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
|
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";
|
||||||
|
|
|
@ -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 [
|
||||||
|
|
Loading…
Reference in a new issue