From d10c2057372c34d9b7a9635ab549cf43594d77f9 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 8 Jan 2025 15:16:59 -0800 Subject: [PATCH] Dynamically generate completions for some tools that offer them --- assets/default/fish/completions/dynamic.fish | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 assets/default/fish/completions/dynamic.fish diff --git a/assets/default/fish/completions/dynamic.fish b/assets/default/fish/completions/dynamic.fish new file mode 100644 index 0000000..38430fa --- /dev/null +++ b/assets/default/fish/completions/dynamic.fish @@ -0,0 +1,16 @@ +# Generate and source completions for fish + +# Source kubectl completions +if type -q kubectl + kubectl completion fish | source +end + +# Source colima completions +if type -q colima + colima completion fish | source +end + +# Source golangci-lint completions +if type -q golangci-lint + golangci-lint completion fish | source +end