Skip to content

Commit

Permalink
feat(k8s): reenable client config
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Mar 7, 2024
1 parent 6c53113 commit 4f24946
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion home/apps/kubernetes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
gojq
jqp
konf
krew
kubecolor
kubeconform
kubectl
Expand All @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion home/apps/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 4f24946

Please sign in to comment.