Добавлен автозапуск tmux при подключении через SSH

This commit is contained in:
Дмитрий Рамазанов 2019-09-18 08:33:23 +05:00
parent 70d70434d1
commit 0705cf3110

View File

@ -97,3 +97,12 @@ fi
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Autostart tmux in SSH-session
if $(type tmux &>/dev/null); then
if [ -n "$SSH_CONNECTION" ]; then
if [ -z "$TMUX" ]; then
tmux attach -d || tmux new
fi
fi
fi