diff --git a/ussh b/ussh index fa0b863..fb119d8 100755 --- a/ussh +++ b/ussh @@ -135,9 +135,9 @@ if [ "$action" == "ssh" ]; then [ -n "$ssh" ] || ssh=ssh [ "${#hosts[*]}" -gt 1 ] && showtitle=1 || showtitle= for host in "${hosts[@]}"; do - [ -n "$showtitle" ] && etitle "$host" splituserhost "$host" user host [[ "$host" == *.* ]] || host="$host${domain:+.$domain}" + [ -n "$showtitle" ] && etitle "${user:+$user@}$host" "$ssh" "${user:+$user@}$host" "${args[@]}" [ -n "$showtitle" ] && eend done