Eitan Adler | 3fc60b5 | 2012-04-17 00:24:58 -0400 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
Piotr Usewicz | d76518d | 2010-10-11 14:01:32 +0100 | [diff] [blame] | 2 | |
Piotr Usewicz | df20afc | 2010-10-13 11:24:10 +0100 | [diff] [blame] | 3 | prompt_setter() { |
| 4 | # Save history |
| 5 | history -a |
| 6 | history -c |
| 7 | history -r |
Hendrik Mans | 1be4467 | 2012-01-26 16:07:06 +0100 | [diff] [blame] | 8 | PS1="(\t) $(scm_char) [$blue\u$reset_color@$green\H$reset_color] $yellow\w${reset_color}$(scm_prompt_info)$(ruby_version_prompt) $reset_color " |
Piotr Usewicz | df20afc | 2010-10-13 11:24:10 +0100 | [diff] [blame] | 9 | PS2='> ' |
| 10 | PS4='+ ' |
| 11 | } |
| 12 | |
| 13 | PROMPT_COMMAND=prompt_setter |
Piotr Usewicz | d76518d | 2010-10-11 14:01:32 +0100 | [diff] [blame] | 14 | |
John Schulz | d5645e7 | 2010-11-09 23:21:19 -0500 | [diff] [blame] | 15 | SCM_THEME_PROMPT_DIRTY=" ✗" |
| 16 | SCM_THEME_PROMPT_CLEAN=" ✓" |
| 17 | SCM_THEME_PROMPT_PREFIX=" (" |
| 18 | SCM_THEME_PROMPT_SUFFIX=")" |
Piotr Usewicz | d76518d | 2010-10-11 14:01:32 +0100 | [diff] [blame] | 19 | RVM_THEME_PROMPT_PREFIX=" (" |
| 20 | RVM_THEME_PROMPT_SUFFIX=")" |