10

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?

eugenevd
  • 214
  • 2
  • 8
HighLife
  • 525

3 Answers3

28

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

HighLife
  • 525
  • 5
    tmux kill-server worked for me. I didn't need to delete ~/.tmux.conf. – oalders Feb 24 '13 at 02:17
  • 2
    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 01 '15 at 23:15
6

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
eugenevd
  • 214
  • 2
  • 8
0

When I restarted my computer, a typo in one particular command in tmux.conf didn't let it run. I fixed it and in the tmux session itself reloaded it using source ~/.tmux.conf and bindings started working again.

Peaceful
  • 111