From ac12d3ea9785efa932d54648ff104ee87bb6c7e5 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 5 Jun 2024 23:43:19 +0200 Subject: [PATCH] feat: add `gitconfig` config and scripts --- git/_deploy.sh | 2 ++ git/_install.sh | 2 ++ git/git/gitconfig | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 git/_deploy.sh create mode 100644 git/_install.sh create mode 100644 git/git/gitconfig diff --git a/git/_deploy.sh b/git/_deploy.sh new file mode 100644 index 0000000..f69387e --- /dev/null +++ b/git/_deploy.sh @@ -0,0 +1,2 @@ +# Install git global config +cp -f ./git/git/gitconfig /etc/gitconfig diff --git a/git/_install.sh b/git/_install.sh new file mode 100644 index 0000000..fd1d340 --- /dev/null +++ b/git/_install.sh @@ -0,0 +1,2 @@ +# Install or upgrade pager +curl -sS https://webi.sh/delta | sh diff --git a/git/git/gitconfig b/git/git/gitconfig new file mode 100644 index 0000000..e5af5f2 --- /dev/null +++ b/git/git/gitconfig @@ -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