Tmux [exited] on startup

Solution 1:

Removing

set-option -g default-command "reattach-to-user-namespace -l zsh"

from the configuration fixed the problem for me.

Solution 2:

I ran into this problem, and the reason was that the shell path was wrong in my .tmux.conf

set -g default-shell /usr/local/bin/fish

It couldn't find the shell, so it crashed. You should probably check whether your default shell's path is correct.

Solution 3:

First, I uninstalled tmux and removed its config file .tmux.conf. The thing that worked for me was deleting tmp/tmux-1000 directory, and then installing tmux again. It seemed to me that tmux was using the default file present in tmp/tmux-1000 directory every time it was being started and very importantly this directory is not being deleted on uninstalling tmux