Rename iTerm tab with a shell function
Shell function:
function renametab () {
echo -ne "\033]0;"$@"\007"
}
Usage:
renametab Bob\'s Burgers
Output:
TweetShell function:
function renametab () {
echo -ne "\033]0;"$@"\007"
}
Usage:
renametab Bob\'s Burgers
Output:
Tweet