feat: add gitconfig config and scripts

This commit is contained in:
Julien Oculi 2024-06-05 23:43:19 +02:00
parent f0129109cb
commit ac12d3ea97
3 changed files with 26 additions and 0 deletions

2
git/_deploy.sh Normal file
View file

@ -0,0 +1,2 @@
# Install git global config
cp -f ./git/git/gitconfig /etc/gitconfig

2
git/_install.sh Normal file
View file

@ -0,0 +1,2 @@
# Install or upgrade pager
curl -sS https://webi.sh/delta | sh

22
git/git/gitconfig Normal file
View file

@ -0,0 +1,22 @@
[core]
pager = delta
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[merge]
conflictstyle = diff3
[alias]
lg = log --color -graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --abbrev-commit --branches
[delta]
navigate = true
side-by-side = true
colorMoved = true
hyperlinks = true
#hyperlinks-file-link-format = "vscode://file/{path}:{line}"
syntax-theme = gruvbox-dark
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true