From 77242c62757c3ed1d1289196097380f168087071 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 5 Jun 2018 02:22:53 +0300 Subject: add ssh-agent systemd unit --- %HOME%/.profile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '%HOME%/.profile') diff --git a/%HOME%/.profile b/%HOME%/.profile index 94a3201..ad04911 100644 --- a/%HOME%/.profile +++ b/%HOME%/.profile @@ -81,4 +81,10 @@ spawn_ssh_agent() { && trap kill_ssh_agent EXIT } -spawn_ssh_agent +# This is a deprecated way to start ssh-agent; now it's managed by systemd (see +# .config/systemd/user/ssh-agent.service for details). +# Before starting ssh-agent like this, make sure to disable system ssh-agent's +# (like those started by Gnome or X11). +# Also, this file needs to be sourced by both your login shell and your display +# manager. +command -v systemctl > /dev/null 2>&1 || spawn_ssh_agent -- cgit v1.2.3