mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
init
This commit is contained in:
8
user/files/shell/rc.d/03-ssh.sh
Normal file
8
user/files/shell/rc.d/03-ssh.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
export TMPDIR=${TMPDIR:-/tmp}
|
||||
|
||||
if ! pgrep -U "$UID" ssh-agent > /dev/null; then
|
||||
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
|
||||
fi
|
||||
if [[ ! "$SSH_AUTH_SOCK" ]]; then
|
||||
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
|
||||
fi
|
||||
Reference in New Issue
Block a user