When I start tmux the first time after a reboot, the default directory is '/' (also newly created tmux tabs have this default directory) and in the place of the tmux session number ('0' in the picture) it shows 'root' instead.
Destroying the tmux session and opening a new one resolves the issue and new tmux sessions and tabs open in my home directory (as shown in the picture).
What could possibly cause this mistake and what could be the reason of the error-rescuing upon a second run of tmux?
I am using the tmux plugin from zsh. Thus tmux is aliased to _zsh_tmux_plugin_run which does:
if [[ -n "$@" ]]; then command tmux "$@" return $? fi local -a tmux_cmd tmux_cmd=(command tmux) [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC) [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]] && $tmux_cmd attach if [[ $? -ne 0 ]] then [[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_cmd+=(-f "$_ZSH_TMUX_FIXED_CONFIG") $tmux_cmd new-session fi if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] then exit fi }