Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Rename iTerm tab with a shell function

Shell function:

function renametab () {
    echo -ne "\033]0;"$@"\007"
}

Usage:

renametab Bob\'s Burgers

Output:

Screen Shot 2021-12-12 at 22 35 04