# /bin/sh # set the xterm title bar to [$|#]hostname [OS] [OS release] # or to arbitrary additional string MY_SHORT_HOST=`uname -n | cut -d\. -f1` MY_XNAME="${MYPREFIX}${MY_SHORT_HOST} `uname -s` `uname -r` `uname -m`" if [ -z "$1" ]; then if test "${USER}" = "root" -o "${EUID}" = "0"; then MYPREFIX="#" else MYPREFIX="$" fi echo "]l" ${MY_XNAME} "\\" else echo "]l" ${MY_XNAME} - $1 $2 $3 $4 $5 $6 $7 $8 $9"\\" fi