From 377e79435bc67301f18bc397481f2abe299d7658 Mon Sep 17 00:00:00 2001 From: gliech Date: Tue, 16 Jul 2024 09:14:25 +0200 Subject: [PATCH] feat(environment.d): configure systemd ssh-agent if available --- .environment.d/ssh_agent.env | 4 ++++ .github/README.md | 1 + 2 files changed, 5 insertions(+) create mode 100644 .environment.d/ssh_agent.env diff --git a/.environment.d/ssh_agent.env b/.environment.d/ssh_agent.env new file mode 100644 index 0000000..bfd9fbf --- /dev/null +++ b/.environment.d/ssh_agent.env @@ -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 diff --git a/.github/README.md b/.github/README.md index 60be858..0e39b2d 100644 --- a/.github/README.md +++ b/.github/README.md @@ -39,6 +39,7 @@ git --work-tree=$HOME --git-dir=$HOME/.dotgit checkout master - fix the umask - Vim put the Yaml indent Stuff in a proper filetype detection script (ftplugin?) - Vim also add cfn filetype for cfn-lint +- enable user systemd units during install (for example the sysd ssh-agent) ## Echos to be replaced by msg() - fuck error msg