mirror of
https://gitea.zaclys.com/yannic/dotfiles.git
synced 2026-05-23 19:37:28 +02:00
Clean tmux
This commit is contained in:
+2
-11
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# address vim mode switching delay (http://superuser.com/a/252717/65504)
|
# 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
|
# increase scrollback buffer size
|
||||||
set -g history-limit 50000
|
set -g history-limit 50000
|
||||||
@@ -54,17 +54,13 @@ setw -g monitor-activity on
|
|||||||
setw -g visual-activity on
|
setw -g visual-activity on
|
||||||
|
|
||||||
# Auto rename
|
# 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}'
|
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
|
# Allows us to use C-a a [command] to send commands to a TMUX session inside
|
||||||
# another TMUX session
|
# another TMUX session
|
||||||
bind-key a send-prefix
|
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
|
# don't exit from tmux when closing a session
|
||||||
set -g detach-on-destroy off
|
set -g detach-on-destroy off
|
||||||
|
|
||||||
@@ -88,15 +84,10 @@ set-window-option -g mode-keys vi
|
|||||||
|
|
||||||
bind Enter copy-mode # enter copy mode
|
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 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 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 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 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'
|
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 (*)
|
# Move windows on the left (/) or on the right (*)
|
||||||
|
|||||||
Reference in New Issue
Block a user