Rename Terminal Tabs in Mac OS X

Jul 20, 2012 - 4 Comments

Terminal Having a bunch of Terminal tabs named “bash” “bash” and “bash” isn’t too useful or descriptive. Instead, you can rename each tab individually to something more specific by using the Terminal inspector.

Before doing so, keep in mind that tabs default to rename themselves automatically based on the currently running process, thus if the terminal tab is running ‘top’ it will rename itself as ‘top’ and so forth. Choosing to rename the tab this way prepends the process name within the tab name.

Here’s how to rename a tab in the OS X Terminal:

  1. From any multi-tabbed Terminal window, hit Shift+Command+i, or pull down the “Shell” menu and select “Edit Title” to bring up the Terminal Inspector window
  2. From here you can either rename the tab name, or even the Terminal window itself
  3. Repeat with other tabs / windows as desired

Here’s an example of what this may look like with renamed and more descriptive tabs:

Rename Terminal Tabs

Name tabs by location, category, purpose, usage, whatever you go with will probably be easier to identify at a glance than the default option, particularly if you have a bunch of shell windows or tabs open that otherwise aren’t too descriptive with their naming convention..

Thanks for the quick tip AJ

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Command Line, Mac OS X, Tips & Tricks

4 Comments

» Comments RSS Feed

  1. Tzunamii says:

    Here’s a quicker way to do it once you have added it into your ~/.bashrc

    # Set the title of the terminal window
    # Usage: settitle
    function settitle() {

    echo -e “33]0;$107″
    }

  2. D says:

    This is a pretty useless feature. Once you run a command on the window the name reverts.

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates