We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1639e0 commit 984cbd1Copy full SHA for 984cbd1
.bashrc
@@ -130,7 +130,7 @@ if $WSL; then
130
# forward ssh socket to Windows
131
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/ssh.sock"
132
else
133
- if [ -S "$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh" ]; then
+ if [ -S "$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh" ] || systemctl --user is-enabled gpg-agent-ssh.socket -q &> /dev/null; then
134
# forward ssh socket to gpg
135
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh"
136
elif ! [ -v SSH_AUTH_SOCK ]; then
0 commit comments