blob: 7b6702cf990f2561fab0b50f455f524b2e73b0c0 [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
JFSIII1b7c9412011-06-17 19:45:21 -04008 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=")"