25 lines
749 B
Bash
25 lines
749 B
Bash
# Prefix
|
|
unbind C-b
|
|
set-option -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
# Mouse and colors
|
|
set -g mouse on
|
|
set -g default-terminal "screen-256color"
|
|
|
|
# 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 '%%'"
|
|
|
|
# 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
|