feat(environment.d): configure systemd ssh-agent if available

This commit is contained in:
gliech 2024-07-16 09:14:25 +02:00
parent 9c0d5fa34e
commit 377e79435b
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,4 @@
if [[ -e ${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user/default.target.wants/ssh-agent.service ]]
then
SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
fi