Усправлен запуск tmux в SSH-сессии
This commit is contained in:
parent
102f563edd
commit
cc8aecfecf
6
.zshrc
6
.zshrc
@ -140,7 +140,9 @@ alias -g IU='| iconv -c -f utf8 -t cp1251'
|
|||||||
# SSH Agent
|
# SSH Agent
|
||||||
#alias ssh='eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ed25519) && ssh'
|
#alias ssh='eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ed25519) && ssh'
|
||||||
|
|
||||||
# start tmux on SSH-sessions
|
# start tmux
|
||||||
if [ -n "$SSH_CONNECTION" ]; then
|
if [ -n "$SSH_CONNECTION" ]; then
|
||||||
tmux attach -d || tmux new
|
if [ -z "$TMUX" ]; then
|
||||||
|
tmux attach -d || tmux new
|
||||||
|
fi
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user