From 3887eeec1e8287bd82f84b22ae917fd15f1910bf Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 4 Dec 2022 17:25:50 -0500 Subject: [PATCH] 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 --- .tmux.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 591ed9f..f8c88ea 100644 --- 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]*:.*" -- libgit2 1.1.1