use git-get in combination with ghq
4 files changed, 21 insertions(+), 2 deletions(-)
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.nix → user/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.nix → user/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.nix → user/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 ]