diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-08-11 20:45:21 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-08-11 20:45:21 -0500 |
commit | bc6392cda9bab22561ccc8568668d4b007ed8da0 (patch) | |
tree | e28e93f763f6a802311b775c2a18430480823dfd /common | |
parent | ab99f224218d0576b44bbc9e3dd7455eae869e92 (diff) |
fix gpg on mac
Diffstat (limited to 'common')
-rw-r--r-- | common/profile.org | 11 |
1 files changed, 8 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 |