1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-01 16:31:53 +02:00
zsh/Functions/Prompts/prompt_elite2_setup
1999-10-04 22:57:19 +00:00

18 lines
782 B
Plaintext
Raw Blame History

# Converted to zsh prompt theme by bash2zshprompt, written by <adam@spiers.net>
# Created by icetrey <trey@imagin.net>
# Added by Spidey 08/06
prompt_elite2_setup () {
local GRAD1=`tty|cut -d/ -f3`
local COLOR1="%{$reset_color$fg_cyan%}"
local COLOR2="%{$bold_color$fg_cyan%}"
local COLOR3="%{$bold_color$fg_grey%}"
local COLOR4="%{$reset_color%}"
PS1="$COLOR3<52>Ś$COLOR1<52>g$COLOR2($COLOR1%n$COLOR3@$COLOR1%m$COLOR2)$COLOR1<52>g$COLOR2($COLOR1%!$COLOR3/$COLOR1$GRAD1$COLOR2)$COLOR1<52>g$COLOR2($COLOR1%D{%I:%M%P}$COLOR3:$COLOR1%D{%m/%d/%y}$COLOR2)$COLOR1<52>g$COLOR3-$COLOR4$prompt_newline$COLOR3<52>^$COLOR1<52>g$COLOR2($COLOR1%#$COLOR3:$COLOR1%~$COLOR2)$COLOR1<52>g$COLOR3-$COLOR4 "
PS2="$COLOR2<52>g$COLOR1<52>g$COLOR3-$COLOR4 "
precmd () { }
preexec () { }
}
prompt_elite2_setup "$@"