Skip to content

Instantly share code, notes, and snippets.

@fstamour
Created January 22, 2015 01:34
Show Gist options
  • Save fstamour/495180644e321cd81cb9 to your computer and use it in GitHub Desktop.
Save fstamour/495180644e321cd81cb9 to your computer and use it in GitHub Desktop.
Little shell function to set the terminal's title (like the title of a gnome-terminal tabs).
# Note that sometimes, these escape sequences are in the prompt,
# resetting the title at every command.
set_terminal_title () {
echo -en "\033]0;$@\a"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment