From e28ccedef91a372dfb3c8862ff904c74b02268d7 Mon Sep 17 00:00:00 2001 From: Xian Wang Date: Fri, 1 Jan 2021 18:43:34 -0500 Subject: gpg: add ssh conf --- zshrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 9add5a4..cdb48d2 100644 --- a/zshrc +++ b/zshrc @@ -91,6 +91,13 @@ source $ZSH/oh-my-zsh.sh ZSH_COMPDUMP=~/.cache/.zcompdump +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --kill gpg-agent +gpgconf --launch gpg-agent +gpg-connect-agent updatestartuptty /bye > /dev/null +gpg-connect-agent "scd serialno" "learn --force" /bye > /dev/null + # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. -- cgit v1.2.3