diff --git a/bin/ssh_to b/bin/ssh_to index 4d86544..f8c80e9 100755 --- a/bin/ssh_to +++ b/bin/ssh_to @@ -20,8 +20,8 @@ MOSH=`command -v mosh` HOST=${0##/*/} if [[ ! -z $TMUX ]] ; then - echo "Error: tmux session detected, aborting to avoid tmux nesting" + echo "Error: local tmux session detected, aborting to avoid nesting" exit 1 fi -"${MOSH}" -- "${HOST}" tmux a +"${MOSH}" "${HOST}" -- sh -c "tmux a || tmux"