cfg/bin/tmux-agent

9 lines
154 B
Text
Raw Permalink Normal View History

#!/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