From ff0859d28966035e310277ef3e8701b1fe119d80 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Sat, 25 Jun 2011 11:50:56 -0500 Subject: [PATCH] Move minimal-git theme into minimal theme --- themes/minimal/minimal.theme.bash | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/themes/minimal/minimal.theme.bash b/themes/minimal/minimal.theme.bash index 8de4a6c..76cb24d 100644 --- a/themes/minimal/minimal.theme.bash +++ b/themes/minimal/minimal.theme.bash @@ -1,7 +1,12 @@ -prompt_setter() { - PS1="${cyan}\W${normal} " -} +#!/usr/bin/env bash + +SCM_THEME_PROMPT_PREFIX="${cyan}(${green}" +SCM_THEME_PROMPT_SUFFIX="${cyan})" +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${green}✓" -PROMPT_COMMAND=prompt_setter +prompt() { + PS1="$(scm_prompt_info)${reset_color} ${cyan}\W${reset_color} " +} -export PS3=">> " +PROMPT_COMMAND=prompt -- 2.17.1