summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--11_Colors.zsh12
-rw-r--r--12_Prompts.zsh4
2 files changed, 13 insertions, 3 deletions
diff --git a/11_Colors.zsh b/11_Colors.zsh
index d38ee68..8edf6b0 100644
--- a/11_Colors.zsh
+++ b/11_Colors.zsh
@@ -16,7 +16,17 @@ _correct_colors[suggest]="$color[blue];$color[bold]"
# This func is intended to give a quick way to reset the colors
# from a running zsh-session
#
-set_prompt_colors ()
+sc ()
+{
+ C=""
+ for c in $( echo $@ | tr ';' ' ' )
+ do
+ c=${$(echo "$c" | sed 's/^[0-9]$/0\0/;/^[0-9]\{2\}$/!d'):-$color[$c]}
+ C+=${C:+;}${c:-00}
+ done
+ __set_prompt_colors $C
+}
+__set_prompt_colors ()
{
# Forces HBAR re-generation with new colors..
_COLUMNS_OLD=0
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 8083888..17b82f3 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -19,7 +19,7 @@ then
_prompt_colors[generic]=${PS1_YEAH}
fi
-set_prompt_colors
+__set_prompt_colors
## Prompts
#
@@ -321,7 +321,7 @@ __two_lines_prompt ()
ZSH_STATUS=$(__zsh_status)
if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" )
then
- set_prompt_colors "38;5;54"
+ __set_prompt_colors "38;5;54"
echo
echo -n $c_$_prompt_colors[warning]$_c
#toilet -f bigmono9 "D1rTY Zsh.."