Permalink
Browse files

tmux: if-shell requires POSIX synatx

  • Loading branch information...
nonylene committed Nov 11, 2018
1 parent ddf0733 commit 1500ef22654ae6256f9118b39050e95ede80f0d8
Showing with 1 addition and 2 deletions.
  1. +1 −2 .tmux.conf
@@ -42,8 +42,7 @@ bind r source-file ~/.tmux.conf \; display-message "Reloaded!"

bind-key C-j send-prefix

if-shell "[[ `tmux -V` == *2.0* ]] || [[ `tmux -V` == *1.* ]]" "set-window-option -g mode-mouse on; set -g mouse-select-pane on; set -g mouse-resize-pane on; set -g mouse-select-window on;"
if-shell "[[ `tmux -V` =~ 2.[1-9]$ ]]" "set -g mouse on"
if-shell "tmux -V | grep -q '2.[1-9]'" "set -g mouse on" "set-window-option -g mode-mouse on; set -g mouse-select-pane on; set -g mouse-resize-pane on; set -g mouse-select-window on;"

# old tmux cannot load if-shell?
source ~/.tmux.conf_local

0 comments on commit 1500ef2

Please sign in to comment.