feat: add completion flags to ahab

This commit is contained in:
2026-03-08 01:42:04 +01:00
parent d0413239cd
commit 38ba80c08b

View File

@@ -19,6 +19,20 @@ pkgs.rustPlatform.buildRustPackage {
buildType = "debug"; buildType = "debug";
nativeBuildInputs = [ pkgs.installShellFiles ];
preBuild = ''
mkdir -p completions
'';
SHELL_COMPLETIONS_DIR = "completions";
postInstall = ''
installShellCompletion --bash completions/ahab.bash
installShellCompletion --zsh completions/_ahab
installShellCompletion --fish completions/ahab.fish
'';
meta = { meta = {
description = "ahab"; description = "ahab";
homepage = "https://git.janezic.dev/janezicmatej/ahab"; homepage = "https://git.janezic.dev/janezicmatej/ahab";