about summary refs log tree commit diff
path: root/Functions/Prompts/prompt_elite_setup
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-04 22:57:19 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-04 22:57:19 +0000
commit8b21d59cfac518f3f7bd1a126c7e36459a5d7f84 (patch)
tree4fadfe55a5a9122fdf0b48ba31ebb6f7fe34159f /Functions/Prompts/prompt_elite_setup
parent035ca7f26e5bb2643e23eda715c892b6a39c3180 (diff)
downloadzsh-8b21d59cfac518f3f7bd1a126c7e36459a5d7f84.tar.gz
zsh-8b21d59cfac518f3f7bd1a126c7e36459a5d7f84.tar.xz
zsh-8b21d59cfac518f3f7bd1a126c7e36459a5d7f84.zip
zsh-workers/8129
Diffstat (limited to 'Functions/Prompts/prompt_elite_setup')
-rw-r--r--Functions/Prompts/prompt_elite_setup18
1 files changed, 18 insertions, 0 deletions
diff --git a/Functions/Prompts/prompt_elite_setup b/Functions/Prompts/prompt_elite_setup
new file mode 100644
index 000000000..e5b43fc84
--- /dev/null
+++ b/Functions/Prompts/prompt_elite_setup
@@ -0,0 +1,18 @@
+# Converted to zsh prompt theme by bash2zshprompt, written by <adam@spiers.net>
+
+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")}
+done
+
+# Created by KrON from windowmaker on IRC
+# Changed by Spidey 08/06
+prompt_elite_setup () {
+  PS1="%{$fg_red%}$char_332$char_304%{$fg_blue%}(%{$fg_red%}%n%{$fg_blue%}@%{$fg_red%}%m%{$fg_blue%})%{$fg_red%}-%{$fg_blue%}(%{$fg_red%}%D{%I:%M%P}%{$fg_blue%}-:-%{$fg_red%}%D{%m}%{$fg_blue$fg_red%}/%D{%d}%{$fg_blue%})%{$fg_red%}$char_304-%{$fg_blue]%}$char_371%{$fg_red%}-$char_371$char_371%{$fg_blue%}$char_372$prompt_newline%{$fg_red%}$char_300$char_304%{$fg_blue%}(%{$fg_red%}%1~%{$fg_blue%})%{$fg_red%}$char_304$char_371%{$fg_blue%}$char_372%{$reset_color%}"
+  PS2="> "
+
+  precmd () { }
+  preexec () { }
+}
+
+prompt_elite_setup "$@"