summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/completion2
-rw-r--r--etc/env1
-rw-r--r--etc/rc1
-rw-r--r--etc/unicode34
4 files changed, 1 insertions, 37 deletions
diff --git a/etc/completion b/etc/completion
index 98f4e4f..09031ca 100644
--- a/etc/completion
+++ b/etc/completion
@@ -13,7 +13,7 @@ zstyle ':completion:*' menu select=1
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} m:_=\\\ ' ''
# Be verbose
-char=${ps_yellow}$(zchar compdelim)${ps_reset}
+char=${ps_yellow}·${ps_reset}
zstyle ':completion:*' verbose true
zstyle ':completion:*:descriptions' format \
"$char %d $char"
diff --git a/etc/env b/etc/env
index 3d5e567..6d61f04 100644
--- a/etc/env
+++ b/etc/env
@@ -1,7 +1,6 @@
## vim:ft=zsh
ZDIR=$HOME/packages/zsh/etc
-(( ${unicode-1} )) &&
PS4='%{'$'\e[0;36m''%}%N%{'$'\e[0m''%}:%{'$'\e[0;33m''%}%i%{'$'\e[0m''%}│'
fpath=($ZDIR/functions $ZDIR/completions $fpath)
[[ -r $ZDIR/../provided/env ]] && source $ZDIR/../provided/env
diff --git a/etc/rc b/etc/rc
index 7d827de..02b2bda 100644
--- a/etc/rc
+++ b/etc/rc
@@ -14,7 +14,6 @@ alias 'openbsd:'='[[ $uname = OpenBSD ]] &&'
## include the actual config
source $ZDIR/options
source $ZDIR/parameters
-source $ZDIR/unicode
source $ZDIR/function
source $ZDIR/zle
source $ZDIR/colors
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]}
- }
-}