I just installed tmux (a terminal multiplexer) with homebrew. When I try to run it, it always exits with [exited] Nothing shows up.
When I try to run tmux list-session I get an error:
failed to connect to server: Connection refused
I tried running tmux start-server, but again nothing happens.
What can I do?
default-commandanddefault-shelloptions. If tmux is having trouble running your default command (or shell) it will respond like you are describing. For further investigation, you can use do something liketmux new /bin/zshto explicitly start with (e.g.)/bin/zshinstead of relying ondefault-commandordefault-shell. – Chris Johnsen Mar 06 '12 at 07:18tmux new /bin/zshworked for me. Thank you. – Stevens Mar 10 '12 at 15:13default-shellordefault-commandsetting. – Chris Johnsen Mar 15 '12 at 11:58mv $HOME/.tmux.conf $HOME/.tmux.conf.backupand see if tmux starts. @ChrisJohnsen is right, your solution simply means that there is a bug afoot. – scicalculator Apr 03 '12 at 05:16@usernameto notify a user that is participating in the comment thread). If you are using the default values ofdefault-shellanddefault-command, then you should check the value of your SHELL environment variable. tmux will attempt to start an instance of your SHELL when you do not give it a command (anddefault-commandis empty, like it is by default). Maybe something (shell initialization file?) is setting your SHELL environment variable to a pathname that does not exist, is inaccessible, or not executable. – Chris Johnsen Jul 29 '12 at 02:24