diff options
| author | miguelvoid <51422047+miguelvoid@users.noreply.github.com> | 2019-06-12 17:21:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-12 17:21:21 +0200 |
| commit | df6575e604a6ae7e6da1b3fe284a51a95e722905 (patch) | |
| tree | 36bd80dc821282f81325e8e400de897f221b2846 /tmux | |
| parent | 60b7d5b69ab504e350223842bace9257d1cfd946 (diff) | |
Update .tmux.conf
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/.tmux.conf | 10 |
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 |
