Skip to content

Commit

Permalink
lets try to get iterm tab happiness.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 24, 2012
1 parent ff83ecc commit 3a5495c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .bashrc
@@ -1 +1,26 @@
# Initialize FINK if needed

if [[ ! -x $(which fink) && -d /sw/bin ]];then
source /sw/bin/init.sh
fi



# iTerm Tab and Title Customization and prompt customization

# Put the string " [bash] hostname::/full/directory/path"
# in the title bar using the command sequence
# \[\e]2;[bash] \h::\]$PWD\[\a\]

# Put the penultimate and current directory
# in the iterm tab
# \[\e]1;\]$(basename $(dirname $PWD))/\W\[\a\]

# Make a simple command-line prompt: bash-$

PS1=$'\[\e]2;[bash] \h::\]$PWD\[\a\]\[\e]1;\]$(basename "$(dirname "$PWD")")/\W\[\a\]bash-\$ '




[ -n "$PS1" ] && source ~/.bash_profile

0 comments on commit 3a5495c

Please sign in to comment.