Detect tmux version for mouse option

This commit is contained in:
Anthony Rose 2020-04-28 08:52:58 +01:00
parent 6c0dc01d70
commit 927aa72319

View file

@ -7,7 +7,10 @@ set -g base-index 1
set -g default-command "$SHELL"
set -g default-terminal "screen-256color"
set -g display-panes-time 5000
set -g mouse on
set -g pane-base-index 1
set -g status-right ''
set-window-option -g xterm-keys on
# RHEL 7 still ships with version 1.8
if-shell -b '[ "$(echo "$TMUX_VERSION >= 2.1" | bc)" = 1 ]' \
"set -g mouse on"