aboutsummaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index 28fc8df..652f711 100644
--- a/zshrc
+++ b/zshrc
@@ -37,7 +37,7 @@ export PAGER="less -FXR"
# load any SSH keys into the agent
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent/agent.sock"
-if [ -f "${SSH_AUTH_SOCK}" ]; then
+if [ -S "${SSH_AUTH_SOCK}" ]; then
keys_loaded="$( ssh-add -l | grep 'has no ident' | wc -l )"
if [ "$keys_loaded" -eq "1" ]; then
ssh-add