Piotr Usewicz | d76518d | 2010-10-11 14:01:32 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 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 |
JFSIII | 1b7c941 | 2011-06-17 19:45:21 -0400 | [diff] [blame] | 8 | PS1="(\t) $(scm_char) [$blue\u$reset_color@$green\H$reset_color] $yellow\w${reset_color}$(scm_prompt_info)$(rvm_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=")" |