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