[F] Check tmux availability before starting tmux session

This commit is contained in:
2026-01-21 12:46:32 -05:00
committed by GitHub
parent 0d6d32eca4
commit 38857bebbe
+2
View File
@@ -315,7 +315,9 @@ ssh() {
# SSH Tmux
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
if command -v tmux >/dev/null 2>&1; then
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
fi
fi
# Subtitle generation