Conditional mouse enable (2.x vs 1.x)

This commit is contained in:
jon
2019-06-01 09:16:28 -05:00
parent 8def6ed12e
commit 760df1a7b9

View File

@@ -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