Skip to content

Commit de1cf09

Browse files
committed
tmux: enable mouse & middle-button paste
1 parent 2875ddf commit de1cf09

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

etc/tmux/tmux-legacy.conf

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ set -g default-terminal 'screen-256color'
6767
set -g xterm-keys on
6868
set -g mode-keys vi
6969

70+
# Mouse support
71+
set -g mouse on
72+
bind-key -T root MouseDown2Pane paste-buffer
73+
7074
# Use red prefix in status bar for root
7175
if-shell '[ "$(id -u)" = "0" ]' 'set -g status-left-style fg=colour196'
7276

etc/tmux/tmux.conf

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ set -g default-terminal 'screen-256color'
8686
set -g xterm-keys on
8787
set -g mode-keys vi
8888

89+
# Mouse support
90+
set -g mouse on
91+
bind-key -T root MouseDown2Pane paste-buffer
92+
8993
# Use red prefix in status bar for root
9094
if-shell '[ "$(id -u)" = "0" ]' {
9195
set -g status-left-style fg=colour196

0 commit comments

Comments
 (0)