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?

  • 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

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

  • 4
    tmux kill-server worked for me. I didn't need to delete ~/.tmux.conf. – oalders Feb 24 '13 at 2:17
  • 1
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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