tmux: copy into system clipboard
This commit is contained in:
parent
72be60dd6e
commit
d5f92f0fb9
1 changed files with 11 additions and 0 deletions
11
_tmux.conf
11
_tmux.conf
|
@ -1,4 +1,15 @@
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
# bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
||||||
|
# bind -n WheelDownPane select-pane -t= \; send-keys -M
|
||||||
|
# bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
|
||||||
|
# bind -t vi-copy C-WheelUpPane halfpage-up
|
||||||
|
# bind -t vi-copy C-WheelDownPane halfpage-down
|
||||||
|
# bind -t emacs-copy C-WheelUpPane halfpage-up
|
||||||
|
# bind -t emacs-copy C-WheelDownPane halfpage-down
|
||||||
|
|
||||||
|
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy"
|
||||||
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy"
|
||||||
|
|
||||||
setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode
|
setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-b
|
set -g prefix C-b
|
||||||
|
|
Loading…
Add table
Reference in a new issue