diff options
| author | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-02-07 08:16:53 -0800 |
|---|---|---|
| committer | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-02-07 08:16:53 -0800 |
| commit | b87395190beb01a5250cc8604ac8d3303510769e (patch) | |
| tree | b1206e40e2f0189fdf1d91416cbb01c7df7eedc4 | |
| parent | add ssh key for github.com (diff) | |
| download | infra-b87395190beb01a5250cc8604ac8d3303510769e.tar.gz | |
configure gh
| -rw-r--r-- | nix/users/fcuny/git.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nix/users/fcuny/git.nix b/nix/users/fcuny/git.nix index ee48cc7..48e3b43 100644 --- a/nix/users/fcuny/git.nix +++ b/nix/users/fcuny/git.nix @@ -3,9 +3,22 @@ home.packages = with pkgs; [ gitAndTools.pre-commit git-credential-manager - gh ]; + programs.gh = { + enable = true; + + settings = { + version = 1; + git_protocol = "ssh"; + prompt = "enabled"; + aliases = { + co = "pr checkout"; + vw = "pr view --web"; + }; + }; + }; + programs.git = { enable = true; @@ -47,6 +60,7 @@ ignores = [ ".envrc" ".direnv" + ".DS_Store" ]; extraConfig = { |
