2023-02-24 01:24:59 +00:00
|
|
|
# vim: ft=sh
|
|
|
|
|
|
|
|
## Configure static SSH Agent
|
|
|
|
export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock"
|
2022-12-12 19:48:42 +00:00
|
|
|
if [ -e $SSH_AUTH_SOCK ]; then
|
|
|
|
rm $SSH_AUTH_SOCK
|
|
|
|
fi
|
2023-02-24 01:24:59 +00:00
|
|
|
if [ -e "$HOME/.spool/ssh-agent.env "]; then
|
|
|
|
rm "$HOME/.spool/ssh-agent.env"
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
|
|
|
if [[ "`pgrep ssh-agent`" ]]; then
|
2023-01-07 17:03:31 +00:00
|
|
|
pkill ssh-agent
|
2022-12-12 19:48:42 +00:00
|
|
|
fi
|
2023-02-24 01:24:59 +00:00
|
|
|
. "$HOME/scripts/ssh-agent.sh"
|
2022-12-12 19:48:42 +00:00
|
|
|
|
|
|
|
# Static/predictable Sway socket
|
2023-02-24 01:24:59 +00:00
|
|
|
export SWAYSOCK="`sway --get-socketpath`"
|