diff options
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r-- | zsh/.zshrc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -147,7 +147,5 @@ sprfile() { curl -F "sprunge=<$1" http://sprunge.us } -GPG_AGENT_INFO=$(ss -xl | grep -o '/run/user/1000/keyring/gpg') -[ -z "$GPG_AGENT_INFO" ] || export GPG_AGENT_INFO=$GPG_AGENT_INFO:0:1 -SSH_AUTH_SOCK=$(ss -xl | grep -o '/run/user/1000/keyring/ssh') -[ -z "$SSH_AUTH_SOCK" ] || export SSH_AUTH_SOCK +[[ -S '/run/user/1000/keyring/gpg' ]] && export GPG_AGENT_INFO='/run/user/1000/keyring/gpg:0:1' +[[ -S '/run/user/1000/keyring/ssh' ]] && export SSH_AUTH_SOCK='/run/user/1000/keyring/ssh' |