Fix tmux ssh sockets
This commit is contained in:
5
.ssh/rc
Executable file
5
.ssh/rc
Executable file
@@ -0,0 +1,5 @@
|
||||
# Create symlink to current ssh socket, if a symlink to an active socket
|
||||
# does not exist
|
||||
if [ ! -S ~/.ssh/ssh_auth_sock ] && [ -S "$SSH_AUTH_SOCK" ]; then
|
||||
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
|
||||
fi
|
||||
@@ -6,3 +6,6 @@ set -g mouse on
|
||||
# pane movement
|
||||
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
|
||||
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
|
||||
|
||||
# ssh socket, important to create symlink in ~/.ssh/rc
|
||||
set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock
|
||||
|
||||
Reference in New Issue
Block a user