feat(fish): add shell shortcut registry

This commit was merged in pull request #62.
This commit is contained in:
2026-08-24 22:45:44 -04:00
parent 45c6d01b1f
commit cb59b18703
8 changed files with 136 additions and 35 deletions

View File

@@ -0,0 +1,21 @@
{ lib }:
let
entryType = lib.types.submodule {
options = {
command = lib.mkOption {
type = lib.types.str;
example = "nvim";
description = "Command expanded by this shell shortcut.";
};
abbreviation = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Whether fish realizes this shell shortcut as an abbreviation instead of an alias.";
};
};
};
in
{
type = lib.types.coercedTo lib.types.str (command: { inherit command; }) entryType;
}