Here’s a bash script that’s useful for setting the title of your MacOSX terminal.

title()
{
  echo -n -e "\033]0;$1\007"
}

alias title=title