summaryrefslogtreecommitdiff
path: root/Functions/Prompts/prompt_fire_setup
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-17 22:42:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-17 22:42:16 +0000
commitc894f695cc02f16af429c7506bb78354dcd9a1e3 (patch)
tree315daebee1a9ebc507790baf516863b0ff450f66 /Functions/Prompts/prompt_fire_setup
parentadeceae8bfb6ed0a3fdea87cc4483c4d990f83fe (diff)
downloadzsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.tar.gz
zsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.zip
25095: thorough modernization of prompt theme system
Diffstat (limited to 'Functions/Prompts/prompt_fire_setup')
-rw-r--r--Functions/Prompts/prompt_fire_setup23
1 files changed, 11 insertions, 12 deletions
diff --git a/Functions/Prompts/prompt_fire_setup b/Functions/Prompts/prompt_fire_setup
index 039e41e4a..7043fd456 100644
--- a/Functions/Prompts/prompt_fire_setup
+++ b/Functions/Prompts/prompt_fire_setup
@@ -29,25 +29,24 @@ prompt_fire_setup () {
local date=${5:-'white'}
local cwd=${6:-'yellow'}
- local char_333 char_262 char_261 char_260
+ local -a schars
autoload -U prompt_special_chars
prompt_special_chars
- local GRAD1="%{$char_333$char_262$char_261$char_260%}"
- local GRAD2="%{$char_260$char_261$char_262$char_333%}"
- local COLOR1="%{$bold_color$fg[$fire1]$bg[$fire2]%}"
- local COLOR2="%{$bold_color$fg[$userhost]$bg[$fire2]%}"
- local COLOR3="%{$reset_color$fg[$fire3]$bg[$fire2]%}"
- local COLOR4="%{$reset_color$fg[$fire3]$bg[grey]%}"
- local COLOR5="%{$bold_color$fg[$cwd]$bg[grey]%}"
- local COLOR6="%{$bold_color$fg[$date]$bg[grey]%}"
- local GRAD0="%{$reset_color%}"
+ local GRAD1="%{$schars[333]$schars[262]$schars[261]$schars[260]%}"
+ local GRAD2="%{$schars[260]$schars[261]$schars[262]$schars[333]%}"
+ local COLOR1="%B%F{$fire1}%K{$fire2}"
+ local COLOR2="%B%F{$userhost}%K{$fire2}"
+ local COLOR3="%b%F{$fire3}%K{$fire2}"
+ local COLOR4="%b%F{$fire3}%K{black}"
+ local COLOR5="%B%F{$cwd}%K{black}"
+ local COLOR6="%B%F{$date}%K{black}"
+ local GRAD0="%b%f%k"
PS1=$COLOR1$GRAD1$COLOR2'%n@%m'$COLOR3$GRAD2$COLOR4$GRAD1$COLOR6' %D{%a %b %d} %D{%I:%M:%S%P} '$prompt_newline$COLOR5'%~/'$GRAD0' '
PS2=$COLOR1$GRAD1$COLOR3$GRAD2$COLOR4$GRAD1$COLOR5'>'$GRAD0' '
- precmd () { setopt promptsubst }
- preexec () { }
+ prompt_opts=(cr subst percent)
}
prompt_fire_preview () {