mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
zshrc: Do not start tmux at startup of zsh.
I have noticed that it can be very annoying.
This commit is contained in:
parent
ab616e0855
commit
b9e2ddf538
10
zshrc
10
zshrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user