Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created July 12, 2009 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilesbowkett/145758 to your computer and use it in GitHub Desktop.
Save gilesbowkett/145758 to your computer and use it in GitHub Desktop.
# title (from "Mac OS X For Unix Geeks")
set_title() {
case $TERM in
*term | xterm-color | rxvt | vt100 | gnome* )
echo -n -e "\033]0;$*\007" ;;
*) ;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment