Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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

Your Answer

 
discard

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.