gnupg: Enable SSH support for gpg-agent
This enables the ssh agent compatability of gpg-agent.
This commit is contained in:
parent
e929c1c694
commit
aa0a73ff16
@ -1,3 +1,4 @@
|
|||||||
default-cache-ttl 14400
|
default-cache-ttl 14400
|
||||||
max-cache-ttl 14400
|
max-cache-ttl 14400
|
||||||
pinentry-program /usr/bin/pinentry-gnome3
|
pinentry-program /usr/bin/pinentry-gnome3
|
||||||
|
enable-ssh-support
|
||||||
|
|||||||
@ -30,3 +30,10 @@ fi
|
|||||||
|
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
export EDITOR="$VISUAL"
|
export EDITOR="$VISUAL"
|
||||||
|
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
|
unset SSH_AGENT_PID
|
||||||
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||||
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user