Use -t to set the initial title of the terminal window.
SSHCOLOURS=~/.ssh/colours
+while getopts ":t:" opt; do
+ case "$opt" in
+ t) title="$OPTARG";;
+ esac
+done
+shift $((OPTIND-1))
+
+[ -z "$title" ] && title="$1"
+
fqdn=${1##*@}
colour=
fi
[ -n "$colour" ] && colour="-bg $colour"
-exec ${SSHTERM:-xterm} ${SSHTERM_TITLE:--title} "$1" \
+exec ${SSHTERM:-xterm} ${SSHTERM_TITLE:--title} "$title" \
$colour ${SSHTERM_EXEC:--e} ${SSHTERM_SSH:-ssh} ${1+"$@"}