From 2b06a1697d44ff35cda11249cc368191c55393ed Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Tue, 10 Sep 2024 17:35:43 +0200 Subject: [PATCH] Add kubectl autocompletion --- home/roles/containers/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/roles/containers/default.nix b/home/roles/containers/default.nix index 6ff82e4e..a8859bb5 100644 --- a/home/roles/containers/default.nix +++ b/home/roles/containers/default.nix @@ -18,9 +18,14 @@ in config = mkIf cfg.enable { home.packages = with pkgs; [ dive + kubectl skopeo ]; programs.k9s.enable = true; + programs.zsh.initExtra = '' + # kubectl autocompletion + source <(kubectl completion zsh) + ''; }; }