blob: fd3b382b4cbcfb99a055d8b89779b6aa980cfb35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
## vim:ft=zsh
typeset -A chars
typeset unicode=${unicode-1}
chars=(
compdelim '-·'
prompt-user-ok '>>' # ▶?
prompt-user-nz '>>' # ▷?
prompt-root-ok '##'
prompt-root-nz '##'
)
function zchar () {
typeset char=$1
if (( unicode == 1 )) {
echo -n - ${chars[$char][2]}
} else {
echo -n - ${chars[$char][1]}
}
}
|