diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-12-31 15:07:08 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-12-31 15:07:08 +0100 |
commit | 9a4209506b0400b5cce16a1a8db948e2b1476daa (patch) | |
tree | 8d349c8bafb720f7ddb710e4b9f0980734c5add0 /etc/unicode | |
parent | e154794e49adba71927b2d1074e4efb24dd4a2e3 (diff) |
Just use unicode, as it should be supported everywhere
Diffstat (limited to 'etc/unicode')
-rw-r--r-- | etc/unicode | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/etc/unicode b/etc/unicode deleted file mode 100644 index 2c5941a..0000000 --- a/etc/unicode +++ /dev/null @@ -1,34 +0,0 @@ -## vim:ft=zsh -## This snippet serves two purposes: -## - it offers a central place to manage 'special' characters -## - it's used to enable / disable unicode -## -## The parameter unicode decides whether unicode is used or not, -## the default is to use unicode. -## -## In the associative array chars, the 'special' characters are stored. -## Each entry contains two characters, the first is ASCII, -## the second may be unicode. -## -## To get a ascii-/unicode-char, the function zchar is used, which outputs a -## character based on the setting of the unicode parameter -## -## disable unicode: unicode=0; reload -## disable ALL unicode, even in PS4 and such: unicode=0 zsh -## -## Note: This only affects zsh, for other programs set $LANG or similar - -typeset -A chars -typeset unicode=${unicode-1} -chars=( - compdelim '-ยท' -) - -function zchar () { - typeset char=$1 - if (( unicode == 1 )) { - echo -n - ${chars[$char][2]} - } else { - echo -n - ${chars[$char][1]} - } -} |