aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-06 20:06:40 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-06 20:06:40 +0200
commit5533e947bbba56e1214b148b481dc214f401f09e (patch)
tree60b59a6a4a2cb0fe3b9a114be1657b26baaa2a53
parenta6d5684070a1d546c98b23669a18ac81c1967d2e (diff)
mac updatesHEADmaster
-rw-r--r--home/dot_local/share/private_gnupg/private_gpg-agent.conf3
-rw-r--r--home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl7
-rw-r--r--home/dot_zshrc.tmpl (renamed from home/dot_zshrc)4
3 files changed, 11 insertions, 3 deletions
diff --git a/home/dot_local/share/private_gnupg/private_gpg-agent.conf b/home/dot_local/share/private_gnupg/private_gpg-agent.conf
deleted file mode 100644
index 4e3bb5d..0000000
--- a/home/dot_local/share/private_gnupg/private_gpg-agent.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-allow-preset-passphrase
-max-cache-ttl 604800
-pinentry-program /usr/bin/pinentry-gtk
diff --git a/home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl b/home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl
new file mode 100644
index 0000000..2e9d8d6
--- /dev/null
+++ b/home/dot_local/share/private_gnupg/private_gpg-agent.conf.tmpl
@@ -0,0 +1,7 @@
+allow-preset-passphrase
+max-cache-ttl 604800
+{{- if eq .chezmoi.os "darwin" }}
+pinentry-program {{ lookPath "pinentry-mac" }}
+{{- else if eq .chezmoi.os "linux" }}
+pinentry-program {{ lookPath "pinentry-gtk" }}
+{{- end }}
diff --git a/home/dot_zshrc b/home/dot_zshrc.tmpl
index 6220015..eca7ae1 100644
--- a/home/dot_zshrc
+++ b/home/dot_zshrc.tmpl
@@ -62,3 +62,7 @@ function cd() {
done
}
+{{- if eq .chezmoi.os "darwin" }}
+
+eval "$(/opt/homebrew/bin/brew shellenv)"
+{{- end }}