From 38857bebbe7694f67a840ceee621a3bd90074444 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 21 Jan 2026 12:46:32 -0500 Subject: [PATCH] [F] Check tmux availability before starting tmux session --- scripts/zshrc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 8fec4f2..d26d664 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -315,7 +315,9 @@ ssh() { # SSH Tmux if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then - tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux + 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