millisami
millisami

Reputation: 10161

Some setting of Tmux doesnt work

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?

Upvotes: 4

Views: 4420

Answers (3)

Schlueter
Schlueter

Reputation: 4039

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.

Upvotes: 6

rado
rado

Reputation: 4095

It could be that you are using tmux 2.1, which doesn't support those anymore.

Upvotes: 1

Mark Nichols
Mark Nichols

Reputation: 1523

# 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

Upvotes: 2

Related Questions