climb65
climb65

Reputation: 193

tmux : config files are not used

I use tmux (tmux 1.8) from Ubuntu 14.04. I wanted to configure it a bit via ~/.tmux.conf. But whatever I set inside this file my tmux session looks the same. Then I tried a fresh new /etc/tmux.conf but I still get the same display.

It seems that my config is hardcoded and that I cannot change it. If I remove these two files (~/.tmux.conf and /etc/tmux.conf) my tmux session is still the same. Tmux runs but I can not configure it. But it should be so simple...

Does anybody have already seen this? And how I could solve that? Do I need to compile a fresh new release of tmux?

Today, I have more details :

on one machine it works as expected. It's OK. But I did not changed anything! Strange...

But on another machine (also running Ubuntu same release and up2date like the first machine) it does not work. The file /etc/tmux.conf does not exist on none of these 2 machines. I put this little config file (~/.tmux.conf) :

# start Window Numbering at 2
set -g base-index 2

When I launch tmux on this second machine, window numbering starts at 0. On the first machine with the same config file, it behaves correctly : it starts at 2.
I'm going crazy!

Upvotes: 9

Views: 8952

Answers (3)

Afshin Mehrabani
Afshin Mehrabani

Reputation: 34989

Executing tmux kill-server can stop the server and then try to run the server again using tmux command.

Please note that after killing the server you will lose all open sessions / tabs.

Upvotes: 2

Jota700
Jota700

Reputation: 71

Try removing all sessions before running tmux. I have noticed that if you have sessions still running, tmux will still load the previous .tmux.config file.

Upvotes: 7

user777337
user777337

Reputation:

After you make changes to ~/.tmux.conf make sure tmux sources them with the tmux source-file ~/.tmux.conf shell command.

Upvotes: 24

Related Questions