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

Shell function:
function renametab () {
echo -ne "\033]0;"$@"\007"
}
Usage:
renametab Bob\'s Burgers
Output: