aboutsummaryrefslogtreecommitdiffstats
path: root/_zlogin
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-20 22:34:56 +0800
committerAaron LI <aly@aaronly.me>2018-02-20 22:34:56 +0800
commit6808da56ad6ecd8c1ebf7ca6a39495df4f7ebbd2 (patch)
tree80142bdab04ebf9d3de3398e912ffda275556659 /_zlogin
parent3f80c4abe8f866d6ed730518af2289a51b5097a5 (diff)
downloaddotfiles-6808da56ad6ecd8c1ebf7ca6a39495df4f7ebbd2.tar.bz2
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`
Diffstat (limited to '_zlogin')
-rw-r--r--_zlogin2
1 files changed, 1 insertions, 1 deletions
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