update the tab/window title with the pwd
authorRich Manalang <rich.manalang@gmail.com>
Thu, 7 Oct 2010 20:19:53 +0000 (13:19 -0700)
committerRich Manalang <rich.manalang@gmail.com>
Thu, 7 Oct 2010 20:19:53 +0000 (13:19 -0700)
.bash_it [new symlink]
themes/bobby/bobby.theme.bash

diff --git a/.bash_it b/.bash_it
new file mode 120000 (symlink)
index 0000000..dee1f0d
--- /dev/null
+++ b/.bash_it
@@ -0,0 +1 @@
+.bash_it
\ No newline at end of file
index 87976fd..bea85ef 100644 (file)
@@ -1,7 +1,17 @@
 #!/bin/bash
 
 # prompt themeing
-PROMPT="${bold_blue}\$(prompt_char)\$(git_prompt_info) ${orange}\h ${reset_color}in ${green}\w ${reset_color}→ "
+
+#added TITLEBAR for updating the tab and window titles with the pwd
+case $TERM in
+       xterm*)
+       TITLEBAR='\[\033]0;\w\007\]'
+       ;;
+       *)
+       TITLEBAR=""
+       ;;
+esac
+PROMPT="${TITLEBAR}${bold_blue}\$(prompt_char)\$(git_prompt_info) ${orange}\h ${reset_color}in ${green}\w ${reset_color}→ "
 
 
 # git themeing
@@ -13,4 +23,4 @@ PROMPT="${bold_blue}\$(prompt_char)\$(git_prompt_info) ${orange}\h ${reset_color
 GIT_THEME_PROMPT_DIRTY=" ✗"
 GIT_THEME_PROMPT_CLEAN=" ✓"
 GIT_THEME_PROMPT_PREFIX=" |"
-GIT_THEME_PROMPT_SUFFIX="|"
\ No newline at end of file
+GIT_THEME_PROMPT_SUFFIX="|"