maj title
This commit is contained in:
parent
35e258b17c
commit
cc1250d677
2
ussh
2
ussh
|
@ -135,9 +135,9 @@ if [ "$action" == "ssh" ]; then
|
||||||
[ -n "$ssh" ] || ssh=ssh
|
[ -n "$ssh" ] || ssh=ssh
|
||||||
[ "${#hosts[*]}" -gt 1 ] && showtitle=1 || showtitle=
|
[ "${#hosts[*]}" -gt 1 ] && showtitle=1 || showtitle=
|
||||||
for host in "${hosts[@]}"; do
|
for host in "${hosts[@]}"; do
|
||||||
[ -n "$showtitle" ] && etitle "$host"
|
|
||||||
splituserhost "$host" user host
|
splituserhost "$host" user host
|
||||||
[[ "$host" == *.* ]] || host="$host${domain:+.$domain}"
|
[[ "$host" == *.* ]] || host="$host${domain:+.$domain}"
|
||||||
|
[ -n "$showtitle" ] && etitle "${user:+$user@}$host"
|
||||||
"$ssh" "${user:+$user@}$host" "${args[@]}"
|
"$ssh" "${user:+$user@}$host" "${args[@]}"
|
||||||
[ -n "$showtitle" ] && eend
|
[ -n "$showtitle" ] && eend
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue