Encode git config in home manager
This commit is contained in:
parent
04a4ed3a72
commit
73872b507a
1 changed files with 15 additions and 5 deletions
|
@ -4,8 +4,18 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Cyryl Płotnicki";
|
userName = "Cyryl Płotnicki";
|
||||||
userEmail = "cyplo@cyplo.net";
|
userEmail = "cyplo@cyplo.net";
|
||||||
includes = [
|
extraConfig = {
|
||||||
{ path = "../.gitconfig.linux.private"; }
|
core = { pager = "cat"; };
|
||||||
];
|
pager = {
|
||||||
|
diff = "diff-so-fancy | less --tabs=1,5 -RFX";
|
||||||
|
show = "diff-so-fancy | less --tabs=1,5 -RFX";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
aliases =
|
||||||
|
{
|
||||||
|
tree = "log --show-signature --color --decorate --date=short --all --graph -n 3";
|
||||||
|
newbranch = "!git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b $2";
|
||||||
|
head = "log HEAD -n1";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue