about summary refs log tree commit diff
path: root/Functions/Prompts/prompt_fade_setup
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-05-10 04:38:54 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-05-10 04:38:54 +0000
commitd0a12b9d7bf8794c1fd4b490501ee167aa62b511 (patch)
treee4e2e6189b4feefbf034784471b3c64d9efba95c /Functions/Prompts/prompt_fade_setup
parent0d34cdcb0d6ff553582b68de2d21aa434c93d2ab (diff)
downloadzsh-d0a12b9d7bf8794c1fd4b490501ee167aa62b511.tar.gz
zsh-d0a12b9d7bf8794c1fd4b490501ee167aa62b511.tar.xz
zsh-d0a12b9d7bf8794c1fd4b490501ee167aa62b511.zip
Misc. prompt theme repairs
Diffstat (limited to 'Functions/Prompts/prompt_fade_setup')
-rw-r--r--Functions/Prompts/prompt_fade_setup5
1 files changed, 2 insertions, 3 deletions
diff --git a/Functions/Prompts/prompt_fade_setup b/Functions/Prompts/prompt_fade_setup
index 5b49f6105..ab908e41e 100644
--- a/Functions/Prompts/prompt_fade_setup
+++ b/Functions/Prompts/prompt_fade_setup
@@ -27,9 +27,8 @@ prompt_fade_setup () {
   local userhost=${2:-'white'}
   local date=${3:-'white'}
 
-  for code in 333 262 261 260 333 262 261 260 333 262 261 260; do
-    local varname=char_$code
-    : ${(P)varname=$(echo -n "\\0$code")}
+  for code in 333 262 261 260; do
+    local char_$code=$(echo -n "\\0$code")
   done
 
   PS1="%{$fg[$fadebar_cwd]$bg[$fadebar_cwd]$bold_color%}$char_333$char_262$char_261$char_260%{$fg[$userhost]$bg[$fadebar_cwd]$bold_color%}%n@%m%{$reset_color$fg[$fadebar_cwd]$bg[grey]%}$char_333$char_262$char_261$char_260%{$fg[$date]$bg[grey]$bold_color%} %D{%a %b %d} %D{%I:%M:%S%P} $prompt_newline%{$fg[$fadebar_cwd]$bg[grey]$bold_color%}%~/%{$reset_color%} "