diaries, triumphs, failures, and rants

pageicon Tuesday May 20, 2008

iTerm tab name current directory

To set your iTerm tab name to your current directory, put the following in your ~/.bash_profile:

export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"'

Technorati Tags: , , , ,

Comments:

Suppose you want to change the name of a tab to something else that's not the current directory or bookmark. There's a hidden feature that lets you do it:

double-click the tab

type the new name you want in the "name" field

type the 'enter' or 'return' key (don't click the 'update default' button)

Posted by mitch on October 16, 2009 at 01:35 PM EDT #

Post a Comment:
  • HTML Syntax: NOT allowed

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Feeds

Search this blog

Links

Weblog menu

Today's referrers

Today's Page Hits: 91