diff options
Diffstat (limited to '.zsh.after/export.zsh')
-rw-r--r-- | .zsh.after/export.zsh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 1c1453d..a602d79 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -27,3 +27,19 @@ export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndF # Java non-reparenting windows _JAVA_AWT_WM_NONREPARENTING=1; export _JAVA_AWT_WM_NONREPARENTING + +# GnuPG +export GPG_TTY=$(tty) + +# ssh-agent setting for use with gpg-agent +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" +fi + +# Explicitely starting gpg-agent in the background +gpgconf --launch gpg-agent + +if [[ $UID -ne 0 ]]; then + export TMUX_TMPDIR="/run/user/$UID/tmux/" +fi |