Fix git gone alias

This commit is contained in:
Sam W 2022-01-17 18:26:25 +00:00
parent ad7e4474fb
commit ba0b654e3e
1 changed files with 5 additions and 3 deletions

View File

@ -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/";
}
];
};
}