Compare commits

...

2 commits

2 changed files with 35 additions and 6 deletions

View file

@ -22,9 +22,33 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.git = { programs.git = {
enable = true; enable = true;
delta = {
enable = true;
options = {
dark = true;
line-numbers = true;
syntax-theme = "base16-256";
};
};
package = pkgs.gitFull; package = pkgs.gitFull;
userName = "${cfg.userName}"; userName = "${cfg.userName}";
userEmail = "${cfg.userEmail}"; userEmail = "${cfg.userEmail}";
aliases = {
fa = "fetch --all";
far = "!git fa; git rebase";
l = "log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
lg = "log --graph --decorate --pretty=oneline --abbrev-commit";
pf = "push --force-with-lease";
rewrite = "!git commit --amend --no-edit && git push --force-with-lease";
st = "status -sb";
};
extraConfig = {
push = {
autoSetupRemote = true;
default = "current";
};
};
}; };
}; };
} }

View file

@ -28,28 +28,33 @@ in
enable = true; enable = true;
highlighters = [ "brackets" "main" "pattern" ]; highlighters = [ "brackets" "main" "pattern" ];
styles = { styles = {
arithmetic-expansion = "fg=#ba8baf";
assign = "fg=#7cafc2"; assign = "fg=#7cafc2";
back-double-quoted-argument = "fg=#7cafc2"; back-double-quoted-argument = "fg=#7cafc2";
back-quoted-argument-delimiter = "fg=ba8baf,bold"; back-quoted-argument-delimiter = "fg=ba8baf,bold";
bracket-error = "fg=#ab4642,bold"; bracket-error = "fg=#ab4642,bold";
bracket-level-1 = "fg=7cafc2"; bracket-level-1 = "fg=#7cafc2";
bracket-level-2 = "fg=ba8baf"; bracket-level-2 = "fg=#ba8baf";
bracket-level-3 = "fg=#a1b56c"; bracket-level-3 = "fg=#a1b56c";
builtin = "fg=#7cafc2,bold"; builtin = "fg=#7cafc2,bold";
commandseparator = "fg=#f7ca88,bold"; commandseparator = "fg=#f7ca88,bold";
cursor-matchingbracket = "fg=ba8baf,bold"; cursor-matchingbracket = "bg=#585858,bold";
dollar-double-quoted-argument = "fg=#86c1b9"; dollar-double-quoted-argument = "fg=#86c1b9";
dollar-quoted-argument = "fg=#86c1b9";
double-hyphen-option = "fg=#86c1b9"; double-hyphen-option = "fg=#86c1b9";
double-quoted-argument-unclosed = "fg=#ab4642,bold"; double-quoted-argument-unclosed = "fg=#ab4642,bold";
function = "fg=blue"; function = "fg=#7cafc2";
globbing = "fg=#ba8baf"; globbing = "fg=#ba8baf";
path = "fg=#f7ca88"; named-fd = "fg=#f7ca88";
numeric-fd = "fg=#f7ca88";
path = "fg=#dc9656";
path_prefix = "fg=#ba8baf"; path_prefix = "fg=#ba8baf";
redirection = "fg=#f7ca88,bold"; redirection = "fg=#ba8baf,bold";
reserved-word = "fg=#ba8baf,bold"; reserved-word = "fg=#ba8baf,bold";
single-hyphen-option = "fg=#86c1b9"; single-hyphen-option = "fg=#86c1b9";
single-quoted-argument = "fg=#f7ca88"; single-quoted-argument = "fg=#f7ca88";
single-quoted-argument-unclosed = "fg=#ab4642,bold"; single-quoted-argument-unclosed = "fg=#ab4642,bold";
unknown-token = "fg=#ab4642,bold";
}; };
patterns = { patterns = {
"\\n" = "fg=#7cafc2"; "\\n" = "fg=#7cafc2";