Skip to content

Instantly share code, notes, and snippets.



Created Jan 26, 2013
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
echo -ne "\033]0;$1\007"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment