diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-22 15:57:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-22 15:57:53 +0200 |
commit | b163bfe049a3ce12c9a183d669aabd1aa6de0e06 (patch) | |
tree | f6997b7ec2009b02a9447774263338b5651bd0a6 /etc/unicode | |
parent | bd9e2a82f69d314291f78d7a4ecb358e3367ec2e (diff) |
Added parameter to disable unicode
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]} + } +} |