16 lines
379 B
Bash
16 lines
379 B
Bash
# Configure static SSH Agent
|
|
export SSH_AUTH_SOCK=$HOME/.spool/ssh-agent.sock
|
|
if [ -e $SSH_AUTH_SOCK ]; then
|
|
rm $SSH_AUTH_SOCK
|
|
fi
|
|
if [ -e $HOME/.spool/ssh-agent.env ]; then
|
|
rm $HOME/.spool/ssh-agent.env
|
|
fi
|
|
if [[ "`pgrep ssh-agent`" ]]; then
|
|
pkill ssh-agent
|
|
fi
|
|
. $HOME/scripts/ssh-agent.sh
|
|
|
|
# Static/predictable Sway socket
|
|
export SWAYSOCK=`sway --get-socketpath`
|