Created the envision template and theme to focus primarily on git repo info as the existing themes and templates seemed to be heavily focused around ruby and other technologies which just threw errors because the packages were not installed and they also cluttered up the prompt with unnecessary information.

pull/167/head
William Jamieson 2012-11-08 12:26:06 +11:00
parent 5c0e1437d4
commit 31eac343ae
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
prompt_setter() {
# Save history
history -a
history -c
history -r
PS1="$yellow(\t)$reset_color $(scm_char) [$cyan\u$reset_color@$green\H$reset_color] $blue\w${reset_color}$red$(scm_prompt_info)$reset_color # "
PS2='> '
PS4='+ '
}
PROMPT_COMMAND=prompt_setter
SCM_THEME_PROMPT_DIRTY=" ${bold_red}${red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}${red}"
SCM_THEME_PROMPT_PREFIX=" ("
SCM_THEME_PROMPT_SUFFIX=")"