Skip to content

Instantly share code, notes, and snippets.

@doersino

doersino/settitle.sh

Created Jan 26, 2013
Embed
What would you like to do?
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