gitconfig fixes - secure credentials

This commit is contained in:
Henrik Bakken
2026-10-07 23:00:03 +02:00
parent e219f9976e
commit b82de0988e
3 changed files with 20 additions and 25 deletions
+3
View File
@@ -285,6 +285,9 @@ bindsym $mod+m mode "$mode_monitor"
# Auth with polkit-gnome # Auth with polkit-gnome
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# Keyring
exec gnome-keyring-daemon --start --components=secrets
# Import environment variables for user systemd service manager # Import environment variables for user systemd service manager
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
+14 -24
View File
@@ -1,7 +1,7 @@
[core] [core]
filemode = false filemode = false
pager = delta --diff-so-fancy pager = delta
autorcrlf = true autocrlf = input
editor = nvim editor = nvim
[user] [user]
name = Henrik Bakken name = Henrik Bakken
@@ -13,8 +13,10 @@
required = true required = true
[interactive] [interactive]
diffFilter = delta --color-only diffFilter = delta --color-only
; [merge]
; conflictstyle = diff3 [merge]
conflictstyle = zdiff3
[delta] [delta]
navigate = true navigate = true
light = false light = false
@@ -29,16 +31,14 @@
plus-non-emph-style = bold green plus-non-emph-style = bold green
plus-emph-style = bold reverse green plus-emph-style = bold reverse green
[delta "interactive"] [delta "interactive"]
keep-plus-minus-markers = false[delta "decorations"] keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = bold yellow box ul commit-decoration-style = bold yellow box ul
file-style = bold yellow ul file-style = bold yellow ul
file-decoration-style = none file-decoration-style = none
hunk-header-decoration-style = cyan box ul hunk-header-decoration-style = cyan box ul
[init] [init]
defaultBranch = main defaultBranch = main
# better defaults
# https://blog.gitbutler.com/how-git-core-devs-configure-git/
[column] [column]
ui = auto ui = auto
[branch] [branch]
@@ -57,6 +57,8 @@
prune = true prune = true
pruneTags = true pruneTags = true
all = true all = true
[pull]
rebase = true
[help] [help]
autocorrect = prompt autocorrect = prompt
[rebase] [rebase]
@@ -64,24 +66,12 @@
autoStash = true autoStash = true
updateRefs = true updateRefs = true
# Improved colors for the highlighted bits [rerere]
# https://github.com/so-fancy/diff-so-fancy enabled = true
autoupdate = true
[color] [color]
ui = true ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
func = 146 bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[safe] [safe]
directory = /tmp directory = /tmp
[credential] [credential]
helper = store helper = /usr/lib/git-core/git-credential-libsecret
+2
View File
@@ -67,6 +67,8 @@ installmap = dict(
"git-lfs", "git-lfs",
"lazygit", "lazygit",
"bat", "bat",
"gnome-keyring", # for git credentials
"seahorse", # keyring ui
), ),
readers=( readers=(
"sioyek", "sioyek",