enable carapace command-line completion

This commit is contained in:
2026-02-24 16:50:17 +08:00
parent 9117816216
commit 39a9318f11
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ in
zsh.enable = true;
fish.enable = true;
starship.enable = true;
carapace.enable = true;
};
};
}
+17
View File
@@ -0,0 +1,17 @@
{ config, lib, ... }:
let
cfg = config.my.cli.shell.carapace;
in
{
options.my.cli.shell.carapace = {
enable = lib.mkEnableOption "carapace completer";
};
config = lib.mkIf cfg.enable {
my.hm = {
programs.carapace = {
enable = true;
};
};
};
}