update the tab/window title with the pwd

pull/5/head
Rich Manalang 2010-10-07 13:19:53 -07:00
parent 69936c5bb5
commit 63d5e7be5e
2 changed files with 13 additions and 2 deletions

1
.bash_it 120000
View File

@ -0,0 +1 @@
.bash_it

View File

@ -1,7 +1,17 @@
#!/bin/bash #!/bin/bash
# prompt themeing # 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 # git themeing