Skip to content

Commit

Permalink
Added mouse resizing to tmux.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
fabuzaid21 committed May 17, 2017
1 parent 40bb2c3 commit 1f69f73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ bind-key C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf

# Use mouse to resize/select windows
is_older="[[ $(tmux -V | cut -d' ' -f2) -lt 2.1 ]] && true || false"
if-shell "$is_older" "set -g mode-mouse on; set -g mouse-resize-pane on;\
set -g mouse-select-pane on; set -g mouse-select-window on" "set -g mouse on"

0 comments on commit 1f69f73

Please sign in to comment.