Добавлен автозапуск tmux при подключении через SSH
This commit is contained in:
parent
70d70434d1
commit
0705cf3110
@ -97,3 +97,12 @@ fi
|
|||||||
# Example aliases
|
# Example aliases
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user