b774766c7e2b2b501e5c4d4b77b7ade651cfb669
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Enable git commit signing only on GUI hosts
Diff
1diff --git a/dot_gitconfig b/dot_gitconfig.tmpl
2rename from dot_gitconfig
3rename to dot_gitconfig.tmpl
4index a68b0a198f3c96610b9e2e67366ff0d001805c85..8b39d85203239aa8b1e0c8f574c2c55316be96f4 100644
5--- a/dot_gitconfig
6+++ b/dot_gitconfig.tmpl
7@@ -1,14 +1,18 @@
8 [user]
9 name = TheEdgeOfRage
10 email = git@theedgeofrage.com
11+ {{ if (index . "gui" | default false) -}}
12 signingkey = 66AD4BA646FBC0D2
13+ {{- end }}
14 [alias]
15 lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
16 slg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s' --abbrev-commit
17 [difftool]
18 prompt = false
19+{{ if (index . "gui" | default false) -}}
20 [commit]
21 gpgsign = true
22+{{- end }}
23 [pull]
24 rebase = true
25 [url "github.com:duneanalytics"]
26@@ -18,14 +22,14 @@
27 [color]
28 ui = auto
29 [core]
30- pager = delta
31+ pager = delta
32 [interactive]
33- diffFilter = delta --color-only
34+ diffFilter = delta --color-only
35 [delta]
36- navigate = true
37- side-by-side = true
38- line-numbers = true
39- true-color = always
40- syntax-theme = gruvbox-dark
41+ navigate = true
42+ side-by-side = true
43+ line-numbers = true
44+ true-color = always
45+ syntax-theme = gruvbox-dark
46 [diff]
47- colorMoved = no
48+ colorMoved = no
49diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl
50index c92b130aa89b0a3dd32719c4e7255fbf5ae813e5..e7587ee6e25b6e456f91ffc74963489186c7b200 100644
51--- a/dot_zshrc.tmpl
52+++ b/dot_zshrc.tmpl
53@@ -114,7 +114,7 @@ fi
54 type zoxide &> /dev/null && eval "$(zoxide init zsh)"
55 type autopair-init &> /dev/null && autopair-init
56
57-{{ if (index . "gui" | default false) }}
58+{{ if (index . "gui" | default false) -}}
59 if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
60 # hyprland on tty1
61 exec uwsm start hyprland.desktop