John Schulz | d5645e7 | 2010-11-09 23:21:19 -0500 | [diff] [blame] | 1 | # scm themeing |
| 2 | SCM_THEME_PROMPT_DIRTY="×" |
| 3 | SCM_THEME_PROMPT_CLEAN="✓" |
| 4 | SCM_THEME_PROMPT_PREFIX="" |
| 5 | SCM_THEME_PROMPT_SUFFIX="" |
Robert R Evans | eeaef1b | 2010-10-06 17:28:34 -0700 | [diff] [blame] | 6 | |
Robert R Evans | d0d58f3 | 2010-10-09 21:47:45 -0700 | [diff] [blame] | 7 | # TODO: need a check for OS before adding this to the prompt |
| 8 | # ${debian_chroot:+($debian_chroot)} |
| 9 | |
| 10 | #added TITLEBAR for updating the tab and window titles with the pwd |
| 11 | case $TERM in |
| 12 | xterm*) |
| 13 | TITLEBAR='\[\033]0;\w\007\]' |
| 14 | ;; |
| 15 | *) |
| 16 | TITLEBAR="" |
| 17 | ;; |
JFSIII | 1b7c941 | 2011-06-17 19:45:21 -0400 | [diff] [blame^] | 18 | esac |
| 19 | |
| 20 | function prompt_command() { |
| 21 | PROMPT='${green}\u${normal}@${green}\h${normal}:${blue}\w${normal}${red}$(prompt_char)$(git_prompt_info)${normal}\$ ' |
| 22 | } |
| 23 | |
| 24 | PROMPT_COMMAND=prompt_command; |