From: Rich Manalang Date: Thu, 7 Oct 2010 20:19:53 +0000 (-0700) Subject: update the tab/window title with the pwd X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=63d5e7be5ecf193a641bad74e85fd5434f197b7f;p=common%2Fbash_it.git update the tab/window title with the pwd --- diff --git a/.bash_it b/.bash_it new file mode 120000 index 0000000..dee1f0d --- /dev/null +++ b/.bash_it @@ -0,0 +1 @@ +.bash_it \ No newline at end of file diff --git a/themes/bobby/bobby.theme.bash b/themes/bobby/bobby.theme.bash index 87976fd..bea85ef 100644 --- a/themes/bobby/bobby.theme.bash +++ b/themes/bobby/bobby.theme.bash @@ -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="|"