#!/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
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="|"