simplify tmux config
This commit is contained in:
parent
f6190082de
commit
1f6b77b507
1 changed files with 2 additions and 3 deletions
|
@ -17,9 +17,8 @@ set -g mouse on
|
||||||
# Lower escape timing from 500ms to 100ms for quicker response to scroll-buffer access.
|
# Lower escape timing from 500ms to 100ms for quicker response to scroll-buffer access.
|
||||||
set -s escape-time 100
|
set -s escape-time 100
|
||||||
|
|
||||||
# Selection with mouse should copy to clipboard right away, in addition to the default action.
|
# Copy to the primary clipboard
|
||||||
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane
|
set -s copy-command 'wl-copy --primary'
|
||||||
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | wl-copy --primary"
|
|
||||||
|
|
||||||
# Middle click to paste from the clipboard
|
# Middle click to paste from the clipboard
|
||||||
unbind-key MouseDown2Pane
|
unbind-key MouseDown2Pane
|
Loading…
Reference in a new issue