zshrc: Do not start tmux at startup of zsh.

I have noticed that it can be very annoying.
This commit is contained in:
Mika Suomalainen 2011-09-30 13:57:54 +03:00
parent ab616e0855
commit b9e2ddf538

10
zshrc
View File

@ -48,10 +48,10 @@ source ~/.zsh_functions
## DO NOT PUT ANYTHING BELOW THIS LINE OR YOUR CHANGES MAY GET IGNORED BY BASH!
sleep 1;
# Gives three seconds time to press CTRL + C in case you want to prevent action by tmux.
# Gives second time to press CTRL + C in case you want to prevent action by tmux.
# Starts tmux always on start of bash, not only on SSH login, and quits from bash when tmux quits. WARNING: I DON'T KNOW WHAT HAPPENS IF YOU DON'T HAVE TMUX INSTALLED! (Modified from Cubox's script and William Shallum's tmux on SSH login http://william.shallum.net/random-notes/automatically-start-tmux-on-ssh-login )
if [[ $TERM != "screen" ]]
then
tmux has-session -t 0 && tmux attach-session -t 0 || tmux new-session -s 0 && exit
fi
#if [[ $TERM != "screen" ]]
#then
# tmux has-session -t 0 && tmux attach-session -t 0 || tmux new-session -s 0 && exit
#fi