update the tab/window title with the pwd
parent
69936c5bb5
commit
63d5e7be5e
|
|
@ -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
|
||||||
|
|
@ -13,4 +23,4 @@ PROMPT="${bold_blue}\$(prompt_char)\$(git_prompt_info) ${orange}\h ${reset_color
|
||||||
GIT_THEME_PROMPT_DIRTY=" ✗"
|
GIT_THEME_PROMPT_DIRTY=" ✗"
|
||||||
GIT_THEME_PROMPT_CLEAN=" ✓"
|
GIT_THEME_PROMPT_CLEAN=" ✓"
|
||||||
GIT_THEME_PROMPT_PREFIX=" |"
|
GIT_THEME_PROMPT_PREFIX=" |"
|
||||||
GIT_THEME_PROMPT_SUFFIX="|"
|
GIT_THEME_PROMPT_SUFFIX="|"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue