Switch from gpg shenanigans to extra/openpgp-card-ssh-agent
This commit is contained in:
13
.zshrc
13
.zshrc
@@ -196,13 +196,14 @@ zinit pack"binary" for fzf
|
||||
|
||||
|
||||
# GPG-SSH INTEGRATION
|
||||
unset SSH_AGENT_PID
|
||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
fi
|
||||
export GPG_TTY=$(tty)
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||
#unset SSH_AGENT_PID
|
||||
#if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||
#export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
#fi
|
||||
#export GPG_TTY=$(tty)
|
||||
#gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/openpgp-card/ssh-agent.sock"
|
||||
|
||||
[ "$TERM" = "xterm-kitty" ] && (alias ssh="command kitten ssh";)
|
||||
[ "$TERMUX_APK_RELEASE" = "F_DROID" ] && (eval `okc-ssh-agent`)
|
||||
|
||||
Reference in New Issue
Block a user