diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-04-16 02:55:41 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-04-16 02:55:41 +0000 |
commit | 81002a74165dda682a1a5e7f1ff559507fd60f65 (patch) | |
tree | d88322b667f1e731ec0d5344e453ce37554abf9e /Functions/Prompts/prompt_elite2_setup | |
parent | e254c6b68aff24d5e15af114cf2921144cc73173 (diff) | |
download | zsh-81002a74165dda682a1a5e7f1ff559507fd60f65.tar.gz zsh-81002a74165dda682a1a5e7f1ff559507fd60f65.tar.xz zsh-81002a74165dda682a1a5e7f1ff559507fd60f65.zip |
Merge from trunk of workers/{21240,22672,22739}.
Diffstat (limited to 'Functions/Prompts/prompt_elite2_setup')
-rw-r--r-- | Functions/Prompts/prompt_elite2_setup | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Functions/Prompts/prompt_elite2_setup b/Functions/Prompts/prompt_elite2_setup index 81107748a..41080187b 100644 --- a/Functions/Prompts/prompt_elite2_setup +++ b/Functions/Prompts/prompt_elite2_setup @@ -20,20 +20,21 @@ prompt_elite2_setup () { local text_col=${1:-'cyan'} local parens_col=${2:-$text_col} - for code in 332 304 304 371 371 371 372 300 304 304 371 372; do - local varname=char_$code - : ${(P)varname=$(echo -n "\\0$code")} + for code in 332 304 300; do + local char_$code=$(echo -n "\\0$code") done - local tty=`tty|cut -d/ -f3` local text="%{$fg_no_bold[$text_col]%}" local parens="%{$fg_bold[$parens_col]%}" - local punctuation_color="%{$fg_bold[grey]%}" + local punct="%{$fg_bold[grey]%}" local reset="%{$reset_color%}" - PS1="$punctuation_colorÚ$textÄ$parens($text%n$punctuation_color@$text%m$parens)$textÄ$parens($text%!$punctuation_color/$text$tty$parens)$textÄ$parens($text%D{%I:%M%P}$punctuation_color:$text%D{%m/%d/%y}$parens)$textÄ$punctuation_color-$reset$prompt_newline$punctuation_colorÀ$textÄ$parens($text%#$punctuation_color:$text%~$parens)$textÄ$punctuation_color-$reset " + local lpar="$parens($text" + local rpar="$parens)$text" - PS2="$parensÄ$textÄ$punctuation_color-$reset " + PS1="$punct$char_332$text$char_304$lpar%n$punct@$text%m$rpar$char_304$lpar%!$punct/$text%y$rpar$char_304$lpar%D{%I:%M%P}$punct:$text%D{%m/%d/%y}$rpar$char_304$punct-$reset$prompt_newline$punct$char_300$text$char_304$lpar%#$punct:$text%~$rpar$char_304$punct-$reset " + + PS2="$parens$char_304$text$char_304$punct-$reset " precmd () { setopt promptsubst } preexec () { } |