cfg/.xprofile.d/50-fix-ssh-agent.sh

5 lines
178 B
Bash

# Fix broken ssh-agent after crash
systemctl --user is-active ssh-agent.service | grep -q active || {
rm -f ~/.ssh/ssh_auth_sock
systemctl --user restart ssh-agent.service
}