3 # this script makes a new title for the terminal window that matches the
4 # hostname and some other details.
6 source $FEISTY_MEOW_SCRIPTS/core/functions.sh
8 pruned_host=$(echo $HOSTNAME | sed -e 's/^\([^\.]*\)\..*$/\1/')
9 date_string=$(date +"%Y %b %e @ %T")
12 if [ -z "$user" ]; then
13 # try snagging the windoze name.
17 new_title="-- $user@$pruned_host -- [$date_string]"
19 bash "$FEISTY_MEOW_SCRIPTS/tty/set_term_title.sh" "$new_title"