diaries, triumphs, failures, and rants
- All
- Animals
- Books
- Chess
- Cigars and the Man-Grill
- Collaboration
- Doctor Who
- General
- Internet
- iPhone
- Java
- LDAP
- mac
- oneLiners
- onThisDay
- slamd
- Star Trek
- Sun
- Travel
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: bash, iterm, tricks, tips, tools
Posted at 10:46AM May 20, 2008 by tgardner in mac | Comments[1]
Tuesday May 20, 2008
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 #