Page 1 of 1

Stuck with tmux

Posted: Wed Nov 04, 2015 8:01 am
by Snap
I'm trying to learn tmux, but cannot even start it properly. I launch it from my menu like this:

Code: Select all

x-terminal-emulator -t tmux -e tmuxattach
and get this output:

Code: Select all

/home/paco/.tmux.conf:15: unknown option: mouse-select-pane
/home/paco/.tmux.conf:16: unknown option: mouse-resize-pane
/home/paco/.tmux.conf:34: unknown option: mode-mouse
And nothing happens. If i hit some keys the cursor moves around and that's it. If i hit enter i get out from tmux like this:

Code: Select all

-bash: Start: command not found
paco@grill:~$ 
What am I doing wrong? I read some guides (arch wiki, etc...) but haven't found anything about this. I'm on Bork with the default ~/.tmux.conf, though the same happens in Smoothie in a virtual machine.

Thanks in advance.

Re: Stuck with tmux

Posted: Wed Nov 04, 2015 8:54 am
by kexolino
Have you tried commenting those lines in the config? Will it start then?

Edit: seems like those mouse options won't work anymore with tmux 2.1.
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.

Re: Stuck with tmux

Posted: Wed Nov 04, 2015 11:21 am
by Snap
Oh, good to know. Anyway, I've commented the lines but this persists:

Code: Select all

-bash: Start: command not found
paco@grill:~$

Re: Stuck with tmux

Posted: Wed Nov 04, 2015 5:03 pm
by pidsley
Try just starting a terminal, and then type "tmux" (no arguments.) If that does not work, change to root, make sure it has no local .tmux.conf and try tmux there:

Code: Select all

su -
mv .tmux.conf .tmux.bak
tmux
If root works with no errors there is something wrong in your user's config files.

Re: Stuck with tmux

Posted: Wed Nov 04, 2015 10:37 pm
by machinebacon
what pidsley says, or simply copy one of the examples from /usr/share/doc/tmux/examples/ to ~/.tmux.conf

Re: Stuck with tmux

Posted: Thu Nov 05, 2015 10:56 am
by Snap
Thanks guys. It works for root. Going to replace that config file.

BTW, this happens both in Bork and Smoothie. It seems the default ~/.tmux.conf files in these spins are not good anymore for the current tmux version.

Re: Stuck with tmux

Posted: Thu Nov 05, 2015 4:32 pm
by machinebacon
Yup, that's true.