feat: ssh-agent on startup

This commit is contained in:
AngeD 2023-10-28 12:45:10 +02:00
parent 3416889521
commit 409c6993f2
5 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,9 @@
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
. "$XDG_RUNTIME_DIR/ssh-agent.env"
[ "$XDG_VTNR" = 1 ] && {
GUILOG="$HOME/.local/share/gui.log"