150 bind-key l select-pane -R |
150 bind-key l select-pane -R |
151 |
151 |
152 # Look good |
152 # Look good |
153 set-option -g default-terminal "screen-256color" |
153 set-option -g default-terminal "screen-256color" |
154 |
154 |
155 # Enable mouse support (works in iTerm) |
155 # Enable mouse support (works in iTerm) (tmux 2.x) |
156 set-window-option -g mode-mouse on |
156 set -g mouse on |
157 set-option -g mouse-select-pane on |
157 set -g mouse-utf8 on |
158 set-option -g mouse-resize-pane on |
158 |
159 set-option -g mouse-select-window on |
159 bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M |
|
160 bind -n WheelDownPane select-pane -t= \; send-keys -M |
160 |
161 |
161 # Change cursor in vim to distinguish between insert and command mode |
162 # Change cursor in vim to distinguish between insert and command mode |
162 set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007' |
163 set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007' |
163 |
164 |
164 # Start tab numbering at 1 |
165 # Start tab numbering at 1 |