Ramiro Berrelleza
Ramiro Berrelleza

Ramiro Berrelleza

Set the title of your terminal

Ramiro Berrelleza's photo
Ramiro Berrelleza
·Dec 22, 2014·

1 min read

If you're anything like me, you always have multiple terminal tabs open at any given time. As soon as I have 5 or 6 tabs open, it becomes impossible to remember what I have running on each tab.

Here's a script that will allow you to update the title of a terminal tab and/or window:

# !/bin/bash
echo -n -e "\033]0;$title\007"

Copy the script above into /usr/bin/title and give it executable permissions (chomod +x /usr/bin/title). After that, typing title My Title will update the title of your current terminal or tab to the value provided. It works with both ASCII and Unicode characters.

Hope it helps!

Share this