ssh vim and tmux

This commit is contained in:
2025-11-14 13:37:28 +01:00
parent 41e9336603
commit c6705a2229
3 changed files with 22 additions and 7 deletions

View File

@@ -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