summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiguelvoid <51422047+miguelvoid@users.noreply.github.com>2019-06-12 17:21:21 +0200
committerGitHub <noreply@github.com>2019-06-12 17:21:21 +0200
commitdf6575e604a6ae7e6da1b3fe284a51a95e722905 (patch)
tree36bd80dc821282f81325e8e400de897f221b2846
parent60b7d5b69ab504e350223842bace9257d1cfd946 (diff)
Update .tmux.conf
-rw-r--r--tmux/.tmux.conf10
1 files changed, 6 insertions, 4 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
index 3e94f46..39178cc 100644
--- a/tmux/.tmux.conf
+++ b/tmux/.tmux.conf
@@ -52,10 +52,12 @@ bind -n M-Down select-pane -D
# Enable mouse control (clickable windows, panes, resizable panes)
-#set -g mouse-select-window on
-#set -g mouse-select-pane on
-#set -g mouse-resize-pane on
-set -g mouse on
+if-shell -b '[ "$(echo "$TMUX_VERSION < 2.1" | bc)" = 1 ]' " \
+ set -g mouse-select-window on; \
+ set -g mouse-select-pane on; \
+ set -g mouse-resize-pane on"
+
+if-shell -b '[ "$(echo "$TMUX_VERSION >= 2.1" | bc)" = 1 ]' "set -g mouse on"
# don't rename windows automatically
set-option -g allow-rename off