From b7022a415d3697214e9bb385ee1ae23e44191548 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 13 Jan 2018 14:09:18 +0800 Subject: zsh: improve gpg-agent startup and support restart --- _zlogin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '_zlogin') diff --git a/_zlogin b/_zlogin index 65a0364..0d73512 100644 --- a/_zlogin +++ b/_zlogin @@ -14,7 +14,8 @@ ## Start `gpg-agent' on login (non-SSH connections) GPG_AGENT_SOCKET="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent" if [[ -z ${SSH_CONNECTION} ]] && [[ ! -S "${GPG_AGENT_SOCKET}" ]]; then - gpgconf --launch gpg-agent + gpg-agent --daemon --enable-ssh-support \ + --pinentry-program ${HOME}/bin/pinentry >/dev/null 2>&1 fi ## Auto start X if login on tty6 -- cgit v1.2.2