blob: 1f9b4fc93cccc4d2a6c719ef38db13897a3b1f6f [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
8 PS1="(\t) $(prompt_char) [\[$blue\]\u\[$reset_color\]@\[$green\]\H\[$reset_color\]] \[$yellow\]\w\[$reset_color\]$(git_prompt_info)$(rvm_version_prompt) $\[$reset_color\] "
9 PS2='> '
10 PS4='+ '
11}
12
13PROMPT_COMMAND=prompt_setter
Piotr Usewiczd76518d2010-10-11 14:01:32 +010014
15GIT_THEME_PROMPT_DIRTY=" ✗"
16GIT_THEME_PROMPT_CLEAN=" ✓"
17GIT_THEME_PROMPT_PREFIX=" ("
18GIT_THEME_PROMPT_SUFFIX=")"
19RVM_THEME_PROMPT_PREFIX=" ("
20RVM_THEME_PROMPT_SUFFIX=")"