1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Functions/Prompts/prompt_elite_setup

19 lines
847 B
Plaintext
Raw Normal View History

1999-10-05 00:57:19 +02:00
# 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 "$@"