summaryrefslogtreecommitdiff
path: root/etc/unicode
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-22 15:57:53 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-22 15:57:53 +0200
commitb163bfe049a3ce12c9a183d669aabd1aa6de0e06 (patch)
treef6997b7ec2009b02a9447774263338b5651bd0a6 /etc/unicode
parentbd9e2a82f69d314291f78d7a4ecb358e3367ec2e (diff)
Added parameter to disable unicode
Diffstat (limited to 'etc/unicode')
-rw-r--r--etc/unicode20
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]}
+ }
+}