From a43db61537748cbef6b689295eb922e1e79b7020 Mon Sep 17 00:00:00 2001 From: Xian Wang Date: Mon, 14 Feb 2022 21:15:01 -0800 Subject: gpg-agent: move gpg-agent to plasma and out of shell rc --- gpg-agent.conf | 6 ------ zshrc | 8 -------- 2 files changed, 14 deletions(-) diff --git a/gpg-agent.conf b/gpg-agent.conf index 646d2d4..58c6ceb 100644 --- a/gpg-agent.conf +++ b/gpg-agent.conf @@ -3,9 +3,3 @@ enable-ssh-support default-cache-ttl 60 max-cache-ttl 120 -#pinentry-program /usr/bin/pinentry-curses -#pinentry-program /usr/bin/pinentry-tty -#pinentry-program /usr/bin/pinentry-x11 -#pinentry-program /usr/local/bin/pinentry-curses -#pinentry-program /usr/local/bin/pinentry-mac -pinentry-program /usr/bin/pinentry diff --git a/zshrc b/zshrc index c9ed37a..eb6990e 100644 --- a/zshrc +++ b/zshrc @@ -31,14 +31,6 @@ fi export PS1='$user_prompt@%M %F{cyan}%2~%f ${vcs_info_msg_0_}%(?..%F{red}[%?]%f )%# ' -if [ ! -f $HOME/server ] && [ ! $UID -eq 0 ]; then - export GPG_TTY="$(tty)" - export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) - gpgconf --launch gpg-agent - gpg-connect-agent updatestartuptty /bye > /dev/null - gpg-connect-agent "scd serialno" "learn --force" /bye > /dev/null -fi - alias l="ls -lah" alias ll="ls -lh" alias okular="setsid okular" -- cgit v1.2.3