diff options
Diffstat (limited to 'modules/git.home.nix')
| -rw-r--r-- | modules/git.home.nix | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/modules/git.home.nix b/modules/git.home.nix index 05317d9..a304423 100644 --- a/modules/git.home.nix +++ b/modules/git.home.nix @@ -1,5 +1,45 @@ { config, pkgs, ... }: { + programs.gh = { + enable = true; + extensions = with pkgs; [ + gh-copilot + gh-poi + gh-dash + gh-notify + ]; + settings = { + aliases = { + clean-branches = "poi"; + pv = "pr view"; + co = "pr checkout"; + }; + }; + }; + + programs.gh-dash = { + enable = true; + settings = { + defaults = { + preview = { + open = true; + width = 80; + }; + }; + pager = { diff = "delta"; }; + keybindings = { + prs = [ + { key = "m"; command = "echo accident"; } + { key = "x"; command = "echo accident"; } + { key = "a"; command = "echo accident"; } + { key = "A"; command = "echo accident"; } + { key = "W"; command = "echo accident"; } + { key = "X"; command = "echo accident"; } + ]; + }; + }; + }; + programs.git = { enable = true; userEmail = "phenax5@gmail.com"; @@ -15,6 +55,14 @@ aliases = { ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"; }; + delta = { + enable = true; + options = { + navigate = true; + side-by-side = true; + line-numbers = true; + }; + }; extraConfig = { color = { ui = true; @@ -36,7 +84,9 @@ new = "green bold"; whitespace = "red reverse"; }; - pull = { rebase = false; }; + pull = { + rebase = false; + }; }; signing.key = "AAAB13AE8B82A5267C1A35D7E1B701723EA37849"; signing.signByDefault = true; |
