Increase backward compatibility for tmux configuration file

This commit is contained in:
Daniel - 2018-10-06 09:30:10 +02:00
parent 297ed41d86
commit c9222a9fef
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,10 @@ set -sg escape-time 0
set -g history-limit 30000
setw -g mouse off
# https://stackoverflow.com/questions/11832199/tmux-set-g-mouse-mode-on-doesnt-work
is_older="[[ $(tmux -V | cut -d' ' -f2) -lt 2.1 ]] && true || false"
if-shell "$is_older" "set -g mode-mouse off; set -g mouse-resize-pane off;\
set -g mouse-select-pane off; set -g mouse-select-window off" "set -g mouse off"
set -g display-time 2000