ssh vim and tmux
This commit is contained in:
11
.tmux.conf
11
.tmux.conf
@@ -11,9 +11,14 @@ set -g default-terminal "screen-256color"
|
||||
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 -g update-environment -r
|
||||
set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock
|
||||
# Update the session environment upon attaching
|
||||
set-option -g update-environment 'SSH_AUTH_SOCK SSH_CONNECTION DISPLAY'
|
||||
set-hook -g client-attached 'run-shell /bin/update_display.sh'
|
||||
|
||||
# Rename the session to the path
|
||||
set-option -g status-interval 5
|
||||
set-option -g automatic-rename on
|
||||
set-option -g automatic-rename-format '#{pane_current_path}'
|
||||
|
||||
# Shorten delay for relaying Esc (to e.g. vim). Too short and PgUp will not work
|
||||
set -sg escape-time 20
|
||||
|
||||
Reference in New Issue
Block a user