Added titlebar PWD to modern theme

pull/37/head
Mark Szymanski 2011-02-05 11:49:47 -06:00
parent b4d773441b
commit 047933378f
1 changed files with 11 additions and 2 deletions

View File

@ -7,6 +7,15 @@ SCM_GIT_CHAR='${bold_green}±${normal}'
SCM_SVN_CHAR='${bold_cyan}⑆${normal}' SCM_SVN_CHAR='${bold_cyan}⑆${normal}'
SCM_HG_CHAR='${bold_red}☿${normal}' SCM_HG_CHAR='${bold_red}☿${normal}'
case $TERM in
xterm*)
TITLEBAR="\[\033]0;\w\007\]"
;;
*)
TITLEBAR=""
;;
esac
PS3=">> " PS3=">> "
is_vim_shell() { is_vim_shell() {
@ -32,10 +41,10 @@ prompt() {
# Yes, the indenting on these is weird, but it has to be like # Yes, the indenting on these is weird, but it has to be like
# this otherwise it won't display properly. # this otherwise it won't display properly.
PS1="${bold_red}┌─${reset_color}$(modern_scm_prompt)[${cyan}\W${normal}]$(is_vim_shell) PS1="${TITLEBAR}${bold_red}┌─${reset_color}$(modern_scm_prompt)[${cyan}\W${normal}]$(is_vim_shell)
${bold_red}└─▪${normal} " ${bold_red}└─▪${normal} "
else else
PS1="┌─$(modern_scm_prompt)[${cyan}\W${normal}]$(is_vim_shell) PS1="${TITLEBAR}┌─$(modern_scm_prompt)[${cyan}\W${normal}]$(is_vim_shell)
└─▪ " └─▪ "
fi fi
} }