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
|
wireshark
|
||||||
xdg_utils
|
xdg_utils
|
||||||
youtube-dl
|
youtube-dl
|
||||||
git-lfs
|
|
||||||
gitAndTools.hub
|
|
||||||
gitAndTools.lab
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.git;
|
cfg = config.dadada.home.git;
|
||||||
|
@ -11,17 +11,59 @@ in
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = {
|
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 = {
|
status = {
|
||||||
short = true;
|
short = true;
|
||||||
branch = 1;
|
branch = true;
|
||||||
|
showUntrackedFiled = "all";
|
||||||
};
|
};
|
||||||
commit = {
|
commit = {
|
||||||
verbose = 1;
|
verbose = true;
|
||||||
};
|
};
|
||||||
log = {
|
log = {
|
||||||
date = "iso8601-local";
|
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";
|
ga = "git add";
|
||||||
gc = "git commit";
|
gc = "git commit";
|
||||||
gd = "git diff";
|
gd = "git diff";
|
||||||
|
gdw = "git diff --color-words";
|
||||||
gf = "git fetch";
|
gf = "git fetch";
|
||||||
gl = "git log";
|
gl = "git log";
|
||||||
gpu = "git push";
|
gpu = "git push";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue