fix ssh tmux

This commit is contained in:
thek4n 2024-02-16 13:52:52 +03:00
parent 0a8ac21fac
commit d8e6a6ac08

View File

@ -11,5 +11,6 @@ elif command -v tmux &>/dev/null && [[ $(tty) = "/dev/tty2" ]] && [[ ! "$TERM" =
fi
if [[ -n "$SSH_CLIENT" ]] && [[ ! "$TERM" =~ tmux ]] && [[ -z "$TMUX" ]]; then
export SSH_CLIENT # for prompt
exec tmux new-session -s ssh -A
fi