[nix] Use delta as a git pager (ht to @moonglum)
This commit is contained in:
parent
ce676bbeb6
commit
34138abfe1
2 changed files with 16 additions and 0 deletions
|
@ -63,6 +63,7 @@ in
|
|||
unstable.pkgs.darktable
|
||||
unstable.pkgs.foot
|
||||
unstable.pkgs.qutebrowser
|
||||
pkgs.delta
|
||||
pkgs.any-nix-shell
|
||||
pkgs.socat
|
||||
pkgs.age
|
||||
|
@ -419,6 +420,7 @@ in
|
|||
|
||||
services.mbsync.enable = true;
|
||||
services.gnome-keyring.enable = true;
|
||||
|
||||
services.nextcloud-client.enable = true;
|
||||
services.emacs.enable = true;
|
||||
programs.emacs = {
|
||||
|
|
|
@ -7,10 +7,24 @@
|
|||
excludesfile = ~/.gitignore
|
||||
editor = em -nw
|
||||
hooksPath = ~/.config/git/hooks
|
||||
pager = delta
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
|
||||
[delta]
|
||||
navigate = true
|
||||
light = false
|
||||
|
||||
[merge]
|
||||
conflictstyle = diff3
|
||||
|
||||
[diff]
|
||||
colorMoved = default
|
||||
|
||||
[alias]
|
||||
lol= 'log' '--oneline' '--graph' '--decorate'
|
||||
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
|
||||
|
|
Loading…
Reference in a new issue