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?
Asked
Active
Viewed 2.0k times
10
-
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 00: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
3 Answers
28
I fixed this by deleting my ~/.tmux.conf and using tmux kill-server
HighLife
- 525
-
5
-
2To 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