all repos — nixfiles @ f8f3f8b33e91b545324013fa3c293bdff2d1db9e

System and user configuration, managed by nix and home-manager

use git-get in combination with ghq

Alan Pearce
commit

f8f3f8b33e91b545324013fa3c293bdff2d1db9e

parent

171c086446515137215f13881a90010b8c653809

A user/settings/fish/functions/ghq.fish
@@ -0,0 +1,13 @@
+function ghq + set cmd $argv[1] + switch $cmd + case "get" + command git-get $argv[2..] + case "status" "st" + command git-get list $argv[2..] + case "ls" + command ghq list $argv[2..] + case '*' + command ghq $argv + end +end
M user/settings/git.nixuser/settings/git.nix
@@ -20,6 +20,10 @@ addEmptyPathspec = false;
detachedHead = false; mergeConflict = false; }; + gitget = { + root = "${config.home.homeDirectory}/projects"; + host = "alin.ovh"; + }; ghq = { root = "${config.home.homeDirectory}/projects"; user = "alanpearce";
@@ -124,7 +128,7 @@ ".dir-locals.el"
]; }; home.packages = with pkgs; [ + git-get ghq - gst ]; }
M user/settings/shell.nixuser/settings/shell.nix
@@ -68,6 +68,8 @@ dcu = "dc up";
dcud = "dc up -d"; dcr = "dc restart"; + gg = "git get"; + gq = "ghq"; ga = "git add"; gs = "git st"; gds = "git dshow";
M user/settings/workstation.nixuser/settings/workstation.nix
@@ -10,7 +10,7 @@ home.packages =
with pkgs; [ nuspell - git-extras # delete-merged-branches and friends + (lowPrio git-extras) # delete-merged-branches and friends git-worktree-switcher gitui ]