blob: 95f243af31bd533f52c4265a93e316a2542fb12b [file] [log] [blame]
Piotr Usewiczd76518d2010-10-11 14:01:32 +01001#!/bin/bash
2
Piotr Usewiczdf20afc2010-10-13 11:24:10 +01003prompt_setter() {
4 # Save history
5 history -a
6 history -c
7 history -r
John Schulzd5645e72010-11-09 23:21:19 -05008 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 Usewiczdf20afc2010-10-13 11:24:10 +01009 PS2='> '
10 PS4='+ '
11}
12
13PROMPT_COMMAND=prompt_setter
Piotr Usewiczd76518d2010-10-11 14:01:32 +010014
John Schulzd5645e72010-11-09 23:21:19 -050015SCM_THEME_PROMPT_DIRTY=" ✗"
16SCM_THEME_PROMPT_CLEAN=" ✓"
17SCM_THEME_PROMPT_PREFIX=" ("
18SCM_THEME_PROMPT_SUFFIX=")"
Piotr Usewiczd76518d2010-10-11 14:01:32 +010019RVM_THEME_PROMPT_PREFIX=" ("
20RVM_THEME_PROMPT_SUFFIX=")"