2023-02-24 01:24:59 +00:00
|
|
|
# vim: ft=sh
|
|
|
|
|
2022-12-12 19:48:42 +00:00
|
|
|
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
|
2023-02-24 01:24:59 +00:00
|
|
|
if [ -z "$SSH_AGENT_PID" ]; then
|
2023-01-07 17:03:31 +00:00
|
|
|
if [ -f "$HOME/.spool/ssh-agent.env" ]; then
|
2023-02-24 01:24:59 +00:00
|
|
|
source "$HOME/.spool/ssh-agent.env" >/dev/null
|
2023-01-07 17:03:31 +00:00
|
|
|
else
|
2023-02-24 01:24:59 +00:00
|
|
|
if [ ! -f "$SSH_AUTH_SOCK" ]; then
|
|
|
|
touch "$SSH_AUTH_SOCK"
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
2023-01-07 17:03:31 +00:00
|
|
|
$HOME/scripts/ssh-agent.sh
|
|
|
|
fi
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
|
|
|
|
2022-12-13 03:44:24 +00:00
|
|
|
echo "This is the host OS. You probably want to open a Distrobox."
|