Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed tmux locally (without root priviledges). I also created my .tmux.conf file in my home directory with the following lines:

unbind-key C-b
set -g prefix C-o
bind-key C-o send-prefix

However, tmux does not seem to be sourcing this file (my bind key is still C-b). I have tried closing and re-opening my ssh session (this is on a remote machine) with no success.

What could be hapenning?

share|improve this question
tmux is not ssh. You need to restart tmux, or manually source the conf file yourself. Restarting an ssh session won't do anything. – jw013 Mar 1 '13 at 22:22
up vote 30 down vote accepted

It's most likely that you haven't started a new tmux server process. You say that you've closed your ssh session and started a new one, but that wouldn't have any effect on the tmux server; one of the main benefits to using tmux is that sessions can survive that type of activity.

Try running tmux ls to check if the server is still running. If it isn't it should complain about that.

If you instead get a list of sessions, attach to each of those in turn and close them. The tmux server process will die when the last session is closed. Then the next time that you start a new session a new server process will be created and it will read the tmux.conf file.

If you don't want to close the existing sessions you can ask the tmux server to read the configuration file with tmux source ~/.tmux.conf.

share|improve this answer

This can also be done from within tmux, by pressing Ctrl+B (prefix key) and then : to bring up a command prompt, and typing:

:source-file ~/.tmux.conf

Read http://blog.sanctum.geek.nz/reloading-tmux-config/

share|improve this answer

Use tmux kill-server, after that start a new tmux session.

share|improve this answer
you save my day! – zx1986 Jul 20 '15 at 2:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.