I am using ubuntu gnome 14.04 and I want to have tmux and zsh opened when I start a new terminal.
For now, in my preference of the terminal, I run tmux by default.
In the ~/.tmux.conf file I have this :
set-option -g default-shell /bin/zsh
It works but I have a problem with colors so I need to use TERM=xterm-256color tmux
to run tmux. I tried to replace the command launched by default but it produce this error : no such file of this type
.
I tried to run zsh by default and I added this in my ~/.zshrc :
if [ "$TMUX" = "" ]; then TERM=xterm-256color tmux; fi
It works but it launch zsh then it launch another process with zsh again. It's not very clean and when I try to close the terminal, it say than I have an active process running.
What can I do to make it work?