aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/git.nix
diff options
context:
space:
mode:
authorFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-07 08:16:53 -0800
committerFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-07 08:16:53 -0800
commitb87395190beb01a5250cc8604ac8d3303510769e (patch)
treeb1206e40e2f0189fdf1d91416cbb01c7df7eedc4 /nix/users/fcuny/git.nix
parentadd ssh key for github.com (diff)
downloadinfra-b87395190beb01a5250cc8604ac8d3303510769e.tar.gz
configure gh
Diffstat (limited to 'nix/users/fcuny/git.nix')
-rw-r--r--nix/users/fcuny/git.nix16
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 = {