Added more git config
This commit is contained in:
parent
24a082f22c
commit
2ab386ce5c
3 changed files with 46 additions and 6 deletions
|
@ -93,7 +93,4 @@ with pkgs; [
|
|||
wireshark
|
||||
xdg_utils
|
||||
youtube-dl
|
||||
git-lfs
|
||||
gitAndTools.hub
|
||||
gitAndTools.lab
|
||||
]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.dadada.home.git;
|
||||
|
@ -11,17 +11,59 @@ in
|
|||
programs.git = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
core = {
|
||||
whitespace = {
|
||||
tab-in-indent = true;
|
||||
tabwidth = 4;
|
||||
};
|
||||
alias = {
|
||||
|
||||
};
|
||||
pager = "delta";
|
||||
};
|
||||
column = {
|
||||
ui = "never";
|
||||
};
|
||||
checkout = {
|
||||
defaultRemote = "origin";
|
||||
};
|
||||
delta = {
|
||||
navigate = true; # use n and N to move between diff sections
|
||||
};
|
||||
diff = {
|
||||
renames = "copies";
|
||||
algorithm = "histogram";
|
||||
colorMoved = "default";
|
||||
};
|
||||
interactive = {
|
||||
diffFilter = "delta --color-only";
|
||||
};
|
||||
merge = {
|
||||
conflictstyle = "diff3";
|
||||
};
|
||||
status = {
|
||||
short = true;
|
||||
branch = 1;
|
||||
branch = true;
|
||||
showUntrackedFiled = "all";
|
||||
};
|
||||
commit = {
|
||||
verbose = 1;
|
||||
verbose = true;
|
||||
};
|
||||
log = {
|
||||
date = "iso8601-local";
|
||||
};
|
||||
pull = {
|
||||
prune = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
delta
|
||||
git-lfs
|
||||
gitAndTools.hub
|
||||
gitAndTools.lab
|
||||
gitAndTools.git-absorb
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ in
|
|||
ga = "git add";
|
||||
gc = "git commit";
|
||||
gd = "git diff";
|
||||
gdw = "git diff --color-words";
|
||||
gf = "git fetch";
|
||||
gl = "git log";
|
||||
gpu = "git push";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue