From 31eac343ae5c824ca7ddcf9c6673f317b1551a9b Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Thu, 8 Nov 2012 12:26:06 +1100 Subject: [PATCH] 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. --- themes/envision/envision.theme.bash | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 themes/envision/envision.theme.bash diff --git a/themes/envision/envision.theme.bash b/themes/envision/envision.theme.bash new file mode 100644 index 00000000..d519962d --- /dev/null +++ b/themes/envision/envision.theme.bash @@ -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=")"