mirror of
https://github.com/wlcx/home.git
synced 2026-09-28 18:38:23 +01:00
update to 25.11
This commit is contained in:
+35
-36
@@ -4,47 +4,46 @@
|
||||
git-open
|
||||
tea
|
||||
];
|
||||
programs.delta = {
|
||||
# Better diffs
|
||||
enable = true;
|
||||
enableGitIntegration = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
};
|
||||
};
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
userName = "Sam Willcocks";
|
||||
userEmail = "sam@wlcx.cc";
|
||||
settings = {
|
||||
user.name = "Sam Willcocks";
|
||||
user.email = "sam@wlcx.cc";
|
||||
alias = {
|
||||
a = "add";
|
||||
ap = "add -p";
|
||||
br = "branch";
|
||||
c = "commit";
|
||||
ca = "commit --amend";
|
||||
can = "commit --amend --no-edit";
|
||||
cm = "commit -m";
|
||||
co = "checkout";
|
||||
d = "diff";
|
||||
dc = "diff --cached";
|
||||
l = "log";
|
||||
lp = "log --patch";
|
||||
p = "push";
|
||||
pf = "push --force-with-lease";
|
||||
r = "rebase";
|
||||
rc = "rebase --continue";
|
||||
ra = "rebase --autostash";
|
||||
rai = "rebase --autostash --interactive";
|
||||
rs = "restore --staged";
|
||||
st = "status";
|
||||
sw = "switch";
|
||||
swc = "switch --create";
|
||||
|
||||
delta = {
|
||||
# Better diffs
|
||||
enable = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
gone = ''! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' │ awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D'';
|
||||
};
|
||||
};
|
||||
|
||||
aliases = {
|
||||
a = "add";
|
||||
ap = "add -p";
|
||||
br = "branch";
|
||||
c = "commit";
|
||||
ca = "commit --amend";
|
||||
can = "commit --amend --no-edit";
|
||||
cm = "commit -m";
|
||||
co = "checkout";
|
||||
d = "diff";
|
||||
dc = "diff --cached";
|
||||
l = "log";
|
||||
lp = "log --patch";
|
||||
p = "push";
|
||||
pf = "push --force-with-lease";
|
||||
r = "rebase";
|
||||
rc = "rebase --continue";
|
||||
ra = "rebase --autostash";
|
||||
rai = "rebase --autostash --interactive";
|
||||
rs = "restore --staged";
|
||||
st = "status";
|
||||
sw = "switch";
|
||||
swc = "switch --create";
|
||||
|
||||
gone = ''! 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";
|
||||
push.default = "current";
|
||||
init.defaultBranch = "main";
|
||||
|
||||
Reference in New Issue
Block a user