Use GPG agent for SSH also
This commit is contained in:
@@ -4,13 +4,7 @@ _zshdir="$HOME/.zshrc.d"
|
||||
|
||||
{% if machine.gpg_agent %}
|
||||
export GPG_TTY=$(tty)
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||
{% endif %}
|
||||
|
||||
{% if machine.ssh_agent %}
|
||||
if $(ssh-add -l 2>/dev/null | grep -q "no identities") ; then
|
||||
ssh-add
|
||||
fi
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
{% endif %}
|
||||
|
||||
for file in "${_zshdir}"/* ; do
|
||||
|
||||
Reference in New Issue
Block a user