aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/profile.org11
-rw-r--r--macos/.gnupg/gpg-agent.org6
2 files changed, 14 insertions, 3 deletions
diff --git a/common/profile.org b/common/profile.org
index b2106d6..197be49 100644
--- a/common/profile.org
+++ b/common/profile.org
@@ -1,11 +1,9 @@
#+TITLE: =.profile= Settings
-* Path
Add items to the path.
#+begin_src sh :tangle ~/.profile
-export PATH="$HOME/.local/share/fzf-zsh-plugin/bin:$HOME/node_modules/.bin:$HOME/.emacs.d/bin:$HOME/bin:$HOME/gems/bin:$HOME/.local/bin:$HOME/go/bin:$PATH"
+export PATH="$HOME/.local/share/fzf-zsh-plugin/bin:$HOME/node_modules/.bin:$HOME/.emacs.d/bin:$HOME/bin:$HOME/gems/bin:$HOME/.local/bin:$HOME/go/bin:/usr/local/bin:$PATH"
#+end_src
-* SSH Agent
Run =ssh-agent= if =ssh-agent= is not already running on my Gentoo system. Ensure that the authorization socket is available in the shell.
#+begin_src sh :tangle ~/.profile
if [ "$(uname)" = 'Linux' ] && grep -q 'ID=gentoo' /etc/os-release; then
@@ -16,3 +14,10 @@ Run =ssh-agent= if =ssh-agent= is not already running on my Gentoo system. Ensur
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
fi
#+end_src
+
+Set =GPG_TTY= on Mac OS.
+#+begin_src sh :tangle ~/.profile
+ if [ "$(uname)" = 'Darwin' ] && ps -e | grep -q 'emacs --daemon'; then
+ export GPG_TTY=$(tty)
+ fi
+#+end_src
diff --git a/macos/.gnupg/gpg-agent.org b/macos/.gnupg/gpg-agent.org
new file mode 100644
index 0000000..8de64d2
--- /dev/null
+++ b/macos/.gnupg/gpg-agent.org
@@ -0,0 +1,6 @@
+#+title: GPG Agent Conf
+Add =pinentry= program for Mac OS.
+
+#+begin_src conf :tangle ~/.gnupg/gpg-agent.conf
+ pinentry-program /opt/homebrew/bin/pinentry-mac
+#+end_src