flake/modules/home/terminal/gh.nix
2026-03-03 16:53:16 +00:00

30 lines
580 B
Nix

{
pkgs,
lib,
config,
...
}: {
options.mods.terminal.gh.enable = lib.mkEnableOption "enables gh and gh-dash";
config = lib.mkIf config.mods.terminal.gh.enable {
programs.gh = {
enable = true;
extensions = [pkgs.gh-dash];
};
programs.gh-dash = {
enable = true;
settings = {
keybindings = {
prs = [
{
key = "C";
command = "nvim -c 'Octo pr edit {{.PrNumber}}'";
description = "Open PR in Octo.nvim";
}
];
};
};
};
};
}