feat(shell): improve shell completion

This commit is contained in:
2026-01-25 16:19:09 +01:00
parent 582460d8f4
commit 5d9efbb651
5 changed files with 24 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ in {
lns = "ln -si";
};
};
autocompletion = mkOption {
type = types.bool;
default = config.home.shell.autocompletion;
example = true;
};
extraShellInit = mkOption {
type = types.lines;
default = "";
@@ -26,6 +31,7 @@ in {
config = lib.mkIf cfg.enable {
programs.fish = {
enable = true;
generateCompletions = cfg.autocompletion;
shellAbbrs = cfg.abbrs;
preferAbbrs = true;
shellInit = with lib;