dotfiles-git/config

35 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-12-21 22:49:17 +01:00
[core]
2023-12-21 22:52:18 +01:00
editor = nvim
2023-12-21 22:49:17 +01:00
[init]
2023-12-21 22:52:18 +01:00
defaultBranch = main
2023-12-21 22:49:17 +01:00
[commit]
2023-12-21 22:52:18 +01:00
gpgsign = true
2023-12-21 22:49:17 +01:00
[filter "lfs"]
2023-12-21 22:52:18 +01:00
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
2023-12-21 22:49:17 +01:00
[user]
2023-12-21 22:52:18 +01:00
useConfigOnly = true
2023-12-21 22:49:17 +01:00
[alias]
2023-12-21 22:52:18 +01:00
lg-inline = "log --graph --branches --all --date=human --color --format='%C(bold dim green)%h%C(auto) - %C(yellow)%<(12)%cr %C(bold)→%C(reset) %s%C(dim white) - %an %C(bold green)<sig>%G?</sig>%GS%C(reset cyan)%d%C(reset)'"
# sed part courtesy of: https://stackoverflow.com/a/32038784
lg = "!f() { \
git lg-inline $@ |\
sed \
-e 's#<sig>G</sig>#Good Signature: #' \
-e 's#<sig>B</sig>#\\x1b[31mBAD#' \
-e 's#<sig>U</sig>#\\x1b[33mUnknown Trust: #' \
-e 's#<sig>X</sig>#Good | Expired#' \
-e 's#<sig>Y</sig>#\\x1b[33mExpired Key#' \
-e 's#<sig>R</sig>#\\x1b[31mRevoked#' \
-e 's#<sig>E</sig>#\\x1b[33mMissing Key#' \
-e 's#<sig>N</sig>##' | \
less -cr; \
}; f"
ck = "checkout"
s = "status"
# https://www.micah.soy/posts/setting-up-git-identities/
identity = "!~/.config/git/scripts/identity.sh"