zsh: gpg-agent setup
This commit is contained in:
parent
2a51db5820
commit
95b1329963
2 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,8 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
gpg-connect-agent updatestartuptty /bye
|
||||||
|
|
||||||
unset SSH_AGENT_PID
|
unset SSH_AGENT_PID
|
||||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
|
|
@ -19,4 +19,5 @@ do
|
||||||
source "${ZDOTDIR}/config/${f}.zsh"
|
source "${ZDOTDIR}/config/${f}.zsh"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
gpg-connect-agent /bye
|
||||||
export GPG_TTY=$TTY
|
export GPG_TTY=$TTY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue