From ba0b654e3e1472f96739e54d8233acccddc09468 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Mon, 17 Jan 2022 18:26:25 +0000 Subject: [PATCH] Fix git gone alias --- home/git.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/git.nix b/home/git.nix index 32527bc..c06fe84 100644 --- a/home/git.nix +++ b/home/git.nix @@ -28,8 +28,7 @@ st = "status"; gone = '' - ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | a - │ wk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"''; + ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' │ awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D''; }; extraConfig = { branch.sort = "-committerdate"; @@ -38,7 +37,10 @@ }; includes = [ { path = "~/.gitconfig.local"; } - { path = "~/.gitconfig.work"; condition = "gitdir:~/work/"; } + { + path = "~/.gitconfig.work"; + condition = "gitdir:~/work/"; + } ]; }; }