From b87395190beb01a5250cc8604ac8d3303510769e Mon Sep 17 00:00:00 2001 From: Franck Cuny <59291+fcuny@users.noreply.github.com> Date: Fri, 7 Feb 2025 08:16:53 -0800 Subject: configure gh --- nix/users/fcuny/git.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'nix/users/fcuny/git.nix') 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 = { -- cgit v1.2.3