Eitan Adler | 3fc60b5 | 2012-04-17 00:24:58 -0400 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
Travis Swicegood | 5c29f7f | 2012-03-13 07:23:27 -0700 | [diff] [blame] | 2 | |
| 3 | source "$BASH_IT/themes/doubletime/doubletime.theme.bash" |
| 4 | |
| 5 | function prompt_setter() { |
| 6 | # Save history |
| 7 | history -a |
| 8 | history -c |
| 9 | history -r |
| 10 | if [[ -z "$THEME_PROMPT_CLOCK_FORMAT" ]] |
| 11 | then |
| 12 | clock="\t" |
| 13 | else |
| 14 | clock=$THEME_PROMPT_CLOCK_FORMAT |
| 15 | fi |
| 16 | PS1=" |
| 17 | $clock $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(virtualenv_prompt)$(ruby_version_prompt) |
| 18 | \w |
| 19 | $(doubletime_scm_prompt)$reset_color $ " |
| 20 | PS2='> ' |
| 21 | PS4='+ ' |
| 22 | } |
| 23 | |
| 24 | PROMPT_COMMAND=prompt_setter |