dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 3887eeec1e8287bd82f84b22ae917fd15f1910bf (patch)
parent af3cdacab1f1b109462beba6798c8913a1fdbb42
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun,  4 Dec 2022 17:25:50 -0500

tmux: Comment out newer command to support Debian

copy-command appears newer, which works great on OpenBSD but Debian's
tmux version needs the explicit xclip bit to copy

Diffstat:
M.tmux.conf | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -3,7 +3,9 @@ set-option -g history-limit 10000 set-option -g mode-keys vi set-option -g mouse on set-option -g set-clipboard off -set-option -g copy-command 'xclip -in -selection clipboard' + +# copy-command doesn't exist on older versions +# set-option -g copy-command 'xclip -in -selection clipboard' # better prefix set-option -g prefix C-a @@ -34,10 +36,10 @@ bind-key C-k select-pane -U bind-key C-l select-pane -R # vi-like selection in copy-mode -bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' bind-key -T copy-mode-vi v send-keys -X begin-selection -# hotkeys to search for plumb-able content +# hotkeys to search for tmux-plumb-able content bind-key H copy-mode \; send-keys -X search-backward "http[^ ]*" bind-key S copy-mode \; send-keys -X search-backward "[a-f0-9]{6,40}" bind-key F copy-mode \; send-keys -X search-backward "^[^ :@#]*:[0-9]*:.*"