blob: 87402c7372930bb7b8c908afdd2187d08b011b14 [file] [log] [blame]
John Schulzd5645e72010-11-09 23:21:19 -05001# scm themeing
2SCM_THEME_PROMPT_DIRTY="×"
3SCM_THEME_PROMPT_CLEAN="✓"
4SCM_THEME_PROMPT_PREFIX=""
5SCM_THEME_PROMPT_SUFFIX=""
Robert R Evanseeaef1b2010-10-06 17:28:34 -07006
Robert R Evansd0d58f32010-10-09 21:47:45 -07007# 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
11case $TERM in
12 xterm*)
13 TITLEBAR='\[\033]0;\w\007\]'
14 ;;
15 *)
16 TITLEBAR=""
17 ;;
JFSIII1b7c9412011-06-17 19:45:21 -040018esac
19
20function prompt_command() {
21 PROMPT='${green}\u${normal}@${green}\h${normal}:${blue}\w${normal}${red}$(prompt_char)$(git_prompt_info)${normal}\$ '
22}
23
24PROMPT_COMMAND=prompt_command;