From 760df1a7b99e3ce6b487266b38121ee04fb45e93 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 1 Jun 2019 09:16:28 -0500 Subject: [PATCH] Conditional mouse enable (2.x vs 1.x) --- tmux/.tmux.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index dc33b9c..15111be 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -39,11 +39,11 @@ set -g mode-keys vi # enable mouse control (click wind, panes, resizable panes) - as of tmux 2.1 # copy/paste: shift+left click to highlight, then shift+middle to past -#if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]' \ -# 'set -g mouse on' \ -# 'set -g mode-mouse on; set -g mouse-resize-pane on; set -g mouse-select-pane on; set -g mouse-select-window on' +if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]' \ + 'set -g mouse on' \ + 'set -g mode-mouse on; set -g mouse-resize-pane on; set -g mouse-select-pane on; set -g mouse-select-window on' -set -g mouse on +#set -g mouse on #'set -g mouse on; set -g mouse-utf8 on' \ bind-key Tab last-window