Add tmux-agent script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8e84cbd803
commit
7bb350a996
1 changed files with 8 additions and 0 deletions
8
bin/tmux-agent
Executable file
8
bin/tmux-agent
Executable file
|
@ -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
|
Loading…
Reference in a new issue