From 80728788c223127e757424dbcbf38266cb24863b Mon Sep 17 00:00:00 2001 From: Maciej Krok <> Date: Thu, 15 Dec 2022 06:33:42 +0100 Subject: [PATCH] completion for k3s if present --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index ca235e7..9fb49cc 100644 --- a/zshrc +++ b/zshrc @@ -670,6 +670,12 @@ if [[ $commands[kubectl] ]]; then source <(kubectl completion zsh); fi +# If k3s is present, load completions from it. +# This must be done after compinit was called +if [[ $commands[k3s] ]]; then + source <(k3s completion zsh); +fi + zmodload zsh/complist #---------------------------------- Addons ------------------------------------