Skip to content

Commit

Permalink
Switch from hub to gh
Browse files Browse the repository at this point in the history
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: mislav/hub#2655
  • Loading branch information
Smona committed Oct 7, 2022
1 parent f612923 commit 2d46cc2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -115,7 +114,6 @@ in {
ncg = "nix-collect-garbage";

# Git aliases
git = "hub";
gb = "git branch";
gcl = "git clone";
gd = "git diff";
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 2d46cc2

Please sign in to comment.