Created
January 26, 2013 21:42
-
-
Save doersino/4644810 to your computer and use it in GitHub Desktop.
Sets the window/tab title on an OS X terminal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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