From f51e5edca021114f8008db56fad715d5e6af028a Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Fri, 27 Mar 2026 21:41:30 -0700 Subject: [PATCH] flake: install shell completions for mcrctl Co-Authored-By: Claude Opus 4.6 (1M context) --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index 2788b59..288e12f 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,14 @@ "-w" "-X main.version=${version}" ]; + postInstall = '' + mkdir -p $out/share/zsh/site-functions + mkdir -p $out/share/bash-completion/completions + mkdir -p $out/share/fish/vendor_completions.d + $out/bin/mcrctl completion zsh > $out/share/zsh/site-functions/_mcrctl + $out/bin/mcrctl completion bash > $out/share/bash-completion/completions/mcrctl + $out/bin/mcrctl completion fish > $out/share/fish/vendor_completions.d/mcrctl.fish + ''; }; }; };