psss / rpms / zsh

Forked from rpms/zsh 5 years ago
Clone
ec7299a
diff -ru zsh-4.3.9-orig/Functions/Prompts/prompt_bigfade_setup zsh-4.3.9/Functions/Prompts/prompt_bigfade_setup
ec7299a
--- zsh-4.3.9-orig/Functions/Prompts/prompt_bigfade_setup	2008-07-14 10:04:18.000000000 -0400
ec7299a
+++ zsh-4.3.9/Functions/Prompts/prompt_bigfade_setup	2008-12-18 20:32:59.000000000 -0500
9ed34da
@@ -7,7 +7,7 @@
3e4841c
   cat <
3e4841c
 This prompt is color-scheme-able.  You can invoke it thus:
3e4841c
 
3e4841c
-  prompt bigfade [<fade-bar> [<userhost> [<date> [<cwd>]]]]
3e4841c
+  prompt bigfade [8bit] [<fade-bar> [<userhost> [<date> [<cwd>]]]]
3e4841c
 
3e4841c
 where the parameters are the colors for the fade-bar, user@host text,
3e4841c
 date text, and current working directory respectively.  The default
9ed34da
@@ -27,9 +27,12 @@
3e4841c
   local date=${3:-'white'}
3e4841c
   local cwd=${4:-'yellow'}
3e4841c
 
3e4841c
+  if [[ $1 == '8bit' ]]; then
9ed34da
+  shift
ec7299a
   local -A schars
ec7299a
   autoload -Uz prompt_special_chars
9ed34da
   prompt_special_chars
3e4841c
+  fi
3e4841c
 
ec7299a
   PS1="%B%F{$fadebar}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$userhost}%K{$fadebar}%n@%m%b%k%f%F{$fadebar}%K{black}$schars[260]$schars[261]$schars[262]$schars[333]%b%f%k%F{$fadebar}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$date}%K{black} %D{%a %b %d} %D{%I:%M:%S%P}$prompt_newline%B%F{$cwd}%K{black}$PWD>%b%f%k "
ec7299a
   PS2="%B%F{$fadebar}$schars[333]$schars[262]$schars[261]$schars[260]%b%F{$fadebar}%K{black}$schars[260]$schars[261]$schars[262]$schars[333]%F{$fadebar}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$fadebar}>%b%f%k "
ec7299a
diff -ru zsh-4.3.9-orig/Functions/Prompts/prompt_elite2_setup zsh-4.3.9/Functions/Prompts/prompt_elite2_setup
ec7299a
--- zsh-4.3.9-orig/Functions/Prompts/prompt_elite2_setup	2008-07-14 10:04:18.000000000 -0400
ec7299a
+++ zsh-4.3.9/Functions/Prompts/prompt_elite2_setup	2008-12-18 20:33:31.000000000 -0500
9ed34da
@@ -6,7 +6,7 @@
3e4841c
   cat <
3e4841c
 This prompt is color-scheme-able.  You can invoke it thus:
3e4841c
 
3e4841c
-  prompt elite2 [<text-color> [<parentheses-color>]]
3e4841c
+  prompt elite2 [8bit] [<text-color> [<parentheses-color>]]
3e4841c
 
3e4841c
 The default colors are both cyan.  This theme works best with a dark
3e4841c
 background.
9ed34da
@@ -21,9 +21,12 @@
3e4841c
   local text_col=${1:-'cyan'}
3e4841c
   local parens_col=${2:-$text_col}
3e4841c
 
3e4841c
+  if [[ $1 == '8bit' ]]; then
9ed34da
+  shift
ec7299a
   local -A schars
ec7299a
   autoload -Uz prompt_special_chars
9ed34da
   prompt_special_chars
3e4841c
+  fi
3e4841c
 
ec7299a
   local text="%b%F{$text_col}"
ec7299a
   local parens="%B%F{$parens_col}"
ec7299a
diff -ru zsh-4.3.9-orig/Functions/Prompts/prompt_elite_setup zsh-4.3.9/Functions/Prompts/prompt_elite_setup
ec7299a
--- zsh-4.3.9-orig/Functions/Prompts/prompt_elite_setup	2008-07-14 10:04:18.000000000 -0400
ec7299a
+++ zsh-4.3.9/Functions/Prompts/prompt_elite_setup	2008-12-18 20:33:45.000000000 -0500
9ed34da
@@ -6,7 +6,7 @@
3e4841c
   cat <
3e4841c
 This prompt is color-scheme-able.  You can invoke it thus:
3e4841c
 
3e4841c
-  prompt elite [<text-color> [<punctuation-color>]]
3e4841c
+  prompt elite [8bit] [<text-color> [<punctuation-color>]]
3e4841c
 
3e4841c
 The default colors are red and blue respectively.  This theme is
3e4841c
 intended for use with a black background.
9ed34da
@@ -21,9 +21,12 @@
3e4841c
   local text=${1:-'red'}
3e4841c
   local punctuation=${2:-'blue'}
3e4841c
 
3e4841c
+  if [[ $1 == '8bit' ]]; then
9ed34da
+  shift
ec7299a
   local -A schars
ec7299a
   autoload -Uz prompt_special_chars
9ed34da
   prompt_special_chars
3e4841c
+  fi
3e4841c
 
ec7299a
   PS1="%F{$text}$schars[332]$schars[304]%F{$punctuation}(%F{$text}%n%F{$punctuation}@%F{$text}%m%F{$punctuation})%F{$text}-%F{$punctuation}(%F{$text}%D{%I:%M%P}%F{$punctuation}-:-%F{$text}%D{%m}%F{$punctuation}%F{$text}/%D{%d}%F{$punctuation})%F{$text}$schars[304]-%F{$punctuation}$schars[371]%F{$text}-$schars[371]$schars[371]%F{$punctuation}$schars[372]$prompt_newline%F{$text}$schars[300]$schars[304]%F{$punctuation}(%F{$text}%1~%F{$punctuation})%F{$text}$schars[304]$schars[371]%F{$punctuation}$schars[372]%f"
3e4841c
   PS2="> "
ec7299a
diff -ru zsh-4.3.9-orig/Functions/Prompts/prompt_fade_setup zsh-4.3.9/Functions/Prompts/prompt_fade_setup
ec7299a
--- zsh-4.3.9-orig/Functions/Prompts/prompt_fade_setup	2008-07-14 10:04:18.000000000 -0400
ec7299a
+++ zsh-4.3.9/Functions/Prompts/prompt_fade_setup	2008-12-18 20:33:55.000000000 -0500
9ed34da
@@ -7,7 +7,7 @@
3e4841c
   cat <
3e4841c
 This prompt is color-scheme-able.  You can invoke it thus:
3e4841c
 
3e4841c
-  prompt fade [<fade-bar-and-cwd> [<userhost> [<date>]]] 
3e4841c
+  prompt fade [8bit] [<fade-bar-and-cwd> [<userhost> [<date>]]] 
3e4841c
 
3e4841c
 where the parameters are the colors for the fade-bar and current
3e4841c
 working directory, user@host text, and date text respectively.  The
9ed34da
@@ -27,9 +27,12 @@
3e4841c
   local userhost=${2:-'white'}
3e4841c
   local date=${3:-'white'}
3e4841c
 
3e4841c
+  if [[ $1 == '8bit' ]]; then
9ed34da
+  shift
ec7299a
   local -A schars
ec7299a
   autoload -Uz prompt_special_chars
9ed34da
   prompt_special_chars
3e4841c
+  fi
3e4841c
 
ec7299a
   PS1="%F{$fadebar_cwd}%B%K{$fadebar_cwd}$schars[333]$schars[262]$schars[261]$schars[260]%F{$userhost}%K{$fadebar_cwd}%B%n@%m%b%F{$fadebar_cwd}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%F{$date}%K{black}%B %D{%a %b %d} %D{%I:%M:%S%P} $prompt_newline%F{fadebar_cwd}%K{black}%B%~/%b%k%f "
ec7299a
   PS2="%F{$fadebar_cwd}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%f%k>"
ec7299a
diff -ru zsh-4.3.9-orig/Functions/Prompts/prompt_fire_setup zsh-4.3.9/Functions/Prompts/prompt_fire_setup
ec7299a
--- zsh-4.3.9-orig/Functions/Prompts/prompt_fire_setup	2008-07-14 10:04:18.000000000 -0400
ec7299a
+++ zsh-4.3.9/Functions/Prompts/prompt_fire_setup	2008-12-18 20:34:04.000000000 -0500
9ed34da
@@ -8,7 +8,7 @@
3e4841c
   cat <
3e4841c
 This prompt is color-scheme-able.  You can invoke it thus:
3e4841c
 
3e4841c
-  prompt fire [<fire1> [<fire2> [<fire3> [<userhost> [<date> [<cwd>]]]]]]
3e4841c
+  prompt fire [8bit] [<fire1> [<fire2> [<fire3> [<userhost> [<date> [<cwd>]]]]]]
3e4841c
 
3e4841c
 where the parameters are the three fire colors, and the colors for the
3e4841c
 user@host text, date text, and current working directory respectively.
9ed34da
@@ -29,9 +29,12 @@
3e4841c
   local date=${5:-'white'}
3e4841c
   local cwd=${6:-'yellow'}
3e4841c
 
3e4841c
+  if [[ $1 == '8bit' ]]; then
9ed34da
+  shift
ec7299a
   local -a schars
ec7299a
   autoload -Uz prompt_special_chars
9ed34da
   prompt_special_chars
3e4841c
+  fi
3e4841c
 
ec7299a
   local GRAD1="%{$schars[333]$schars[262]$schars[261]$schars[260]%}"
ec7299a
   local GRAD2="%{$schars[260]$schars[261]$schars[262]$schars[333]%}"