diff options
Diffstat (limited to 'etc/unicode')
-rw-r--r-- | etc/unicode | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/unicode b/etc/unicode new file mode 100644 index 0000000..fd3b382 --- /dev/null +++ b/etc/unicode @@ -0,0 +1,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]} + } +} |