Increase backward compatibility for tmux configuration file
This commit is contained in:
parent
297ed41d86
commit
c9222a9fef
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue