From 435095ba31a816fece797713396df98ac51dc2e9 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 15 Feb 2015 13:38:43 +0100 Subject: export.zsh: Add export for GnuPG started as daemon on demand and emulating ssh-agent. --- .zsh.after/export.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.zsh.after/export.zsh') diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 1c1453d..6086d1b 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -27,3 +27,13 @@ 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 + -- cgit v1.2.3-70-g09d2 From 0445a8d94ab11a490c1685717e17edaf31860e4d Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 15 Feb 2015 18:38:11 +0100 Subject: export.zsh: Adding an explicit start of gpg-agent. --- .zsh.after/export.zsh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.zsh.after/export.zsh') diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 6086d1b..1d2340b 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -37,3 +37,5 @@ 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 -- cgit v1.2.3-70-g09d2 From 631e98d64870a98aab8cdc30e3048ecde14b33b8 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Feb 2015 18:00:25 +0100 Subject: export.zsh: Adding TMUX_TMPDIR to exports. --- .zsh.after/export.zsh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.zsh.after/export.zsh') diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 1d2340b..f2b2d9a 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -39,3 +39,5 @@ fi # Explicitely starting gpg-agent in the background gpgconf --launch gpg-agent + +export TMUX_TMPDIR="/run/user/$UID/tmux/" -- cgit v1.2.3-70-g09d2 From 78d47f7aca8e4f47c0d6714a7cb0095ff1975e07 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 11 Mar 2015 18:50:24 +0100 Subject: export.zsh: Don't use /run/user/ directory for roots TMUX_TMPDIR. --- .zsh.after/export.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.zsh.after/export.zsh') diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index f2b2d9a..a602d79 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -40,4 +40,6 @@ fi # Explicitely starting gpg-agent in the background gpgconf --launch gpg-agent -export TMUX_TMPDIR="/run/user/$UID/tmux/" +if [[ $UID -ne 0 ]]; then + export TMUX_TMPDIR="/run/user/$UID/tmux/" +fi -- cgit v1.2.3-70-g09d2