cfg/bin/tmux-agent
Knut Ahlers 7bb350a996
Add tmux-agent script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-04-09 01:23:53 +02:00

8 lines
154 B
Bash
Executable file

#!/bin/bash
[ -e $HOME/.ssh/ssh_auth_sock ] && exit 0
pgrep ssh-agent | xargs -r kill
eval $(ssh-agent)
ln -sf $SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock