emulate -L zsh -o extendedglob
local E N
local CNs
CNs=(black red green yellow blue magenta cyan white grey gray
bright-gray bright-red bright-green bright-yellow bright-blue
bright-magenta bright-cyan bright-white)
for N ({0..15}) {
TP="%K{$N}%n@%m%k %B%F{1}%(4~|...|)%1~%F{15} %# %b%f%k"
print -- "${(l.2.. .)N} ${(%)TP}"
}
for E ($CNs) {
TP="%K{$E}%n@%m%k %B%F{1}%(4~|...|)%1~%F{15} %# %b%f%k"
print -- "${(l.14.. .)E} ${(%)TP}"
}
# vim: ts=2 sw=2 sts=2 sta ai et ft=zsh :
Attachment:
prompt_test_on_white_bg.png
Description: PNG image
Attachment:
prompt_test_on_black_bg.png
Description: PNG image