[F] Check tmux availability before starting tmux session
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user