diff options
author | awy <awy@awy.one> | 2024-10-28 00:13:29 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-10-28 00:13:29 +0300 |
commit | 881d9ed9e627501af7ecdf05f4aeaf5e69020114 (patch) | |
tree | ef10f2bd24181f29ed2f82f4beed9653886b5672 /.config/zsh/.zshrc | |
parent | 2bd226d29b2d579088a0b95bcb13a8e7761a6e29 (diff) |
fix
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r-- | .config/zsh/.zshrc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index d9a511d..a2c2dfe 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -39,7 +39,11 @@ lfcd () { } bindkey -s '^o' '^ulfcd\n' -export GPG_TTY=$(tty) +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 PASSWORD_STORE_CLIP_TIME=5 # Load syntax highlighting; should be last. source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null |