Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some setting of Tmux doesnt work

Tags:

tmux

On Mac Mountain lion, tmux installed via Homebrew.

Some settings like the following doesn't work:

setw -g pane-base-index 1
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on

Then error:

/Users/millisami/.tmux.conf: 52: unknown option: pane-base-index
/Users/millisami/.tmux.conf: 53: unknown option: mouse-resize-pane
/Users/millisami/.tmux.conf: 55: unknown option: mouse-select-window

Whats wrong?

like image 990
Autodidact Avatar asked Jan 14 '23 15:01

Autodidact


2 Answers

As rado said, tmux 2.1 doesn't support the individual mouse settings. It replaced them with a single setting, mouse which can be set with set -g mouse on in your ~/.tmux.conf.

As for the pane-base-index setting, Mark Nichols suggestion of:

# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1

worked for me on OS X 10.10.5 running tmux 2.1 installed via brew in iTerm 2.1.4.

like image 143
bschlueter Avatar answered Mar 28 '23 17:03

bschlueter


# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1

set -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
like image 23
Mark Nichols Avatar answered Mar 28 '23 18:03

Mark Nichols