Detect tmux version for mouse option
This commit is contained in:
parent
6c0dc01d70
commit
927aa72319
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue