Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lets try to get iterm tab happiness.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |