diff --git a/bin/tmux-agent b/bin/tmux-agent new file mode 100755 index 0000000..8c978d9 --- /dev/null +++ b/bin/tmux-agent @@ -0,0 +1,8 @@ +#!/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