summaryrefslogtreecommitdiff
path: root/.config/systemd/user/ssh-agent.service
blob: 17b490ca17d95d577e2e53839159843c26c2bb62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=ssh-agent

[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent
Environment=DISPLAY=:0
ExecStartPre=/bin/rm -f $SSH_AUTH_SOCK
ExecStart=/usr/bin/ssh-agent -d -a $SSH_AUTH_SOCK

[Install]
WantedBy=default.target