Skip to content

Instantly share code, notes, and snippets.

@doersino
Created January 26, 2013 21:42
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 doersino/4644810 to your computer and use it in GitHub Desktop.
Save doersino/4644810 to your computer and use it in GitHub Desktop.
Sets the window/tab title on an OS X terminal.
function settitle() {
local USAGE
USAGE="usage: settitle WINDOW_TITLE"
if [ -z "$1" ]; then
echo -e "$USAGE"; return 1
fi
echo -ne "\033]0;$1\007"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment