Super User is a question and answer site for computer enthusiasts and power users. 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 using homebrew on Mac OSX Lion a while back. Suddenly the keybindings have stopped working. For example if I try Ctrl-b then c (Create new window) it just types c in the terminal window. How can I fix this and make tmux useable again?

share|improve this question
have you changed your .tmuxconf file? Are you using the default terminal or iterm2. iterm2 has buil in tmux integration now. – lampShade Mar 30 '12 at 0:21
I have not changed .tmuxconf, and tmux does not work in the default terminal or iterm2 – HighLife Mar 30 '12 at 18:37
Also when I ssh into another computer from my Mac, and use tmux, the keybindings work fine. – HighLife Mar 30 '12 at 18:47
up vote 14 down vote accepted

I fixed this by deleting my ~/.tmux.conf and using tmux kill-server

share|improve this answer
Glad you figured it out. Be sure to mark your answer with the green check mark to help others in the future! – Raystafarian Mar 31 '12 at 16:09
Don't have enough reputation, I can't for another 6 hours. – HighLife Mar 31 '12 at 17:23
tmux kill-server worked for me. I didn't need to delete ~/.tmux.conf. – oalders Feb 24 '13 at 2:17
To anyone reading this - kill-server kills your tmux session. Part of me knew that, but not the same part that copy pasted tmux kill-server hoping it'd fix my issues. Try the other fix first. – Achal Dave Jul 1 '15 at 23:15

Depending on your situation, "kill-server" might be overkill.

For me, the non working keys is fixed by just detaching the client that stopped working, and re attaching to it; in a different terminal:

tmux detach-client -s mysession
tmux attach-session -t mysession
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .