From 2d46cc2e8f9186c1b5b14f49008feceea5a68387 Mon Sep 17 00:00:00 2001 From: Mel Bourgeois Date: Fri, 7 Oct 2022 17:54:38 -0500 Subject: [PATCH] Switch from hub to gh I couldn't get hub to authenticate properly, because it hasn't been updated to support github's new auth APIs. Most people recommended switching to gh: https://github.com/github/hub/issues/2655 --- home.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index cb3a983..a204806 100644 --- a/home.nix +++ b/home.nix @@ -51,7 +51,6 @@ in { # Universal dev tools docker docker-compose - hub # Fonts # Fonts I like, in order of preference: Cascadia Code, FiraCode, Dank Mono, JetBrains Mono @@ -115,7 +114,6 @@ in { ncg = "nix-collect-garbage"; # Git aliases - git = "hub"; gb = "git branch"; gcl = "git clone"; gd = "git diff"; @@ -360,6 +358,18 @@ in { # https://github.com/nix-community/nix-direnv programs.direnv.nix-direnv.enable = true; + programs.gh = { + enable = true; + settings = { + git_protocol = "ssh"; + prompt = "enabled"; + aliases = { + co = "pr checkout"; + pv = "pr view"; + }; + }; + }; + # Services services.syncthing.enable = true;