diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-02-10 16:53:03 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-02-10 19:52:19 -0600 |
commit | e712243be494a4158901014faad7ec67ceb809e5 (patch) | |
tree | 6d44ad0eff41f06e96609fd0d2c874fdda6c8b44 /ssh/.config | |
parent | 8cf873086c3a49fdc0f4aff5b5042c40f32b8537 (diff) |
feat: split `.profile` to individual files
split `$XDG_CONFIG_HOME/.profile` up into `$XDG_CONFIG_HOME/profile.d`
directory. This allows for better management and prioritization between
different tool's env.
Diffstat (limited to 'ssh/.config')
-rw-r--r-- | ssh/.config/profile.d/10-ssh.sh | 3 | ||||
-rw-r--r-- | ssh/.config/systemd/user/ssh-agent.service | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ssh/.config/profile.d/10-ssh.sh b/ssh/.config/profile.d/10-ssh.sh new file mode 100644 index 0000000..82e3b31 --- /dev/null +++ b/ssh/.config/profile.d/10-ssh.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" diff --git a/ssh/.config/systemd/user/ssh-agent.service b/ssh/.config/systemd/user/ssh-agent.service new file mode 100644 index 0000000..8d45631 --- /dev/null +++ b/ssh/.config/systemd/user/ssh-agent.service @@ -0,0 +1,11 @@ +[Unit] +Description=SSH key agent + +[Service] +Type=simple +Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket +Environment=DISPLAY=:0 +ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK + +[Install] +WantedBy=default.target |