In my .zshrc, I have
for one of the lines. This doesn't seem to work, as tmux never launches on a new shell, and the environment variable ENABLE_TMUX is always false when I start a shell. The rest of my zshrc works fine, however. I'm not sure why this wouldn't work.
### START TMUX IF ENABLED ABOVE ### if [ "$ENABLE_TMUX" = "TRUE" ]; then # start tmux if not already running if [[ ! "$TTY" =~ "/dev/tty" ]]; then case $(ps -p $(ps -p $$ -o ppid=) o args=) in tmux*|*vscode*|*xterm*|*kdevelop*|*ascii*) sleep 0 ;; *) tmux ;; esac fi fi ###
This is the function that starts tmux. Not sure what's wrong here, if anything. I am on Xubuntu 18.04.