Clean tmux

This commit is contained in:
Yax 2026-04-24 18:00:01 +02:00
parent 1c727e1c2a
commit 2e10f2350e

View file

@ -2,7 +2,7 @@
#
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 50
set -s escape-time 5
# increase scrollback buffer size
set -g history-limit 50000
@ -54,17 +54,13 @@ setw -g monitor-activity on
setw -g visual-activity on
# Auto rename
set-option -g automatic-rename on
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b;s/{{ .username }}/~/:pane_current_path}'
# Allows us to use C-a a [command] to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# don't exit from tmux when closing a session
set -g detach-on-destroy off
@ -88,15 +84,10 @@ set-window-option -g mode-keys vi
bind Enter copy-mode # enter copy mode
run -b 'tmux bind -t vi-copy v begin-selection 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi v send -X begin-selection 2> /dev/null || true'
run -b 'tmux bind -t vi-copy C-v rectangle-toggle 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi C-v send -X rectangle-toggle 2> /dev/null || true'
run -b 'tmux bind -t vi-copy y copy-selection 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi y send -X copy-selection-and-cancel 2> /dev/null || true'
run -b 'tmux bind -t vi-copy Escape cancel 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi Escape send -X cancel 2> /dev/null || true'
run -b 'tmux bind -t vi-copy H start-of-line 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi L send -X end-of-line 2> /dev/null || true'
# Move windows on the left (/) or on the right (*)