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

6 lines
178 B
Bash
Raw Normal View History

2024-09-23 14:52:11 +00:00
# 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
}