mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 05:24:23 +01:00
19 lines
1.0 KiB
Plaintext
19 lines
1.0 KiB
Plaintext
# Converted to zsh prompt theme by bash2zshprompt, written by <adam@spiers.net>
|
|
|
|
for code in 333 262 261 260 260 261 262 333 333 262 261 260 333 262 261 260 260 261 262 333 333 262 261 260; do
|
|
local varname=char_$code
|
|
: ${(P)varname=$(echo -n "\\0$code")}
|
|
done
|
|
|
|
# Created by James Manning <jmm@raleigh.ibm.com>
|
|
# Changed by Spidey 08/06
|
|
prompt_combo_setup () {
|
|
PS1="%{$bold_color$fg_blue$bold_color%}$char_333$char_262$char_261$char_260%{$bold_color$fg_white$bg_blue%}%n@%m%{$reset_color$fg_blue$bg_grey%}$char_260$char_261$char_262$char_333%{$reset_color$fg_blue$bg_grey%}$char_333$char_262$char_261$char_260%{$bold_color$fg_white$bg_grey%} %D{%a %b %d} %D{%I:%M:%S%P}$prompt_newline%{$bold_color$fg_yellow$bg_grey%}$PWD>%{$reset_color%} "
|
|
PS2="%{$bold_color$fg_blue$bold_color%}$char_333$char_262$char_261$char_260%{$reset_color$fg_blue$bg_grey%}$char_260$char_261$char_262$char_333%{$reset_color$fg_blue$bg_grey%}$char_333$char_262$char_261$char_260%{$bold_color$bold_color$fg_blue%}>%{$reset_color%} "
|
|
|
|
precmd () { }
|
|
preexec () { }
|
|
}
|
|
|
|
prompt_combo_setup "$@"
|