naitokosuke · dotfiles

The GitHub CLI: SSH as the git protocol, vim as the editor, co for pr checkout. gh-sub-issue is not in nixpkgs, so it comes from ../pkgs as the official prebuilt binary, version-tracked by nvfetcher.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28# The GitHub CLI: SSH as the git protocol, vim as the editor, `co` for
# `pr checkout`. gh-sub-issue is not in nixpkgs, so it comes from ../pkgs as
# the official prebuilt binary, version-tracked by nvfetcher.
{
  pkgs,
  ...
}:

{
  programs.gh = {
    enable = true;
    extensions = [
      pkgs.gh-actions-lock
      pkgs.naitokosuke.gh-sub-issue
    ];
    settings = {
      version = 1;
      git_protocol = "ssh";
      editor = "vim";
      prompt = "enabled";
      prefer_editor_prompt = "disabled";
      aliases = {
        co = "pr checkout";
      };
    };
  };
}
28 lines·580 chars·NIX