Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (31 sloc) 1.03 KB
  __                    
_/  |_ _____      ____  
\   __\\__  \    / ___\ 
 |  |   / __ \_ / /_/  >
 |__|  (____  / \___  / 
            \/ /_____/  

Dead-easy titles for OSX's Terminal.app windows/tabs

Motivation

There's no easy way to 'rename' Terminal.app windows/tabs on OSX.

The current solution is ...

echo -n -e "\033]0;facebook_killer\007"

.. but that is all kinds of filthy; not to mention hard to remember.

tag provides a convenient way to rename Terminal.app windows/tabs.

Installation

npm -g install tag

Usage

$ tag [TITLE=CWD]

tag sets the title to the current directory

tag TITLE sets title to TITLE

Example

The usual, unhelpful Terminal.app with its default "Terminal" title ...

before

Default title

tag

# title is now "facebook_killer"

after default

Custom title

tag "Facebook Killer"

# title is now "Facebook Killer"

after custom

fin.