From 6808da56ad6ecd8c1ebf7ca6a39495df4f7ebbd2 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 20 Feb 2018 22:34:56 +0800 Subject: gpg: rewrite gpg-agent handling with zsh * do not hack to force to use `pinentry-curses` with custom `pinentry` and `gpg2-x11` shims * explain to use the `pinentry-gtk-2`, which will fallback to text mode * simply launch `gpg-agent` with `gpgconf --launch` --- _zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_zlogin') diff --git a/_zlogin b/_zlogin index 27eb391..65a0364 100644 --- a/_zlogin +++ b/_zlogin @@ -14,7 +14,7 @@ ## 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 - restart-gpg-agent + gpgconf --launch gpg-agent fi ## Auto start X if login on tty6 -- cgit v1.2.2