X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=843b0f88c95bd7d975113428bf802e167890af41;hb=ac8a97797662df20aa9bc239e434ca8f94596bab;hp=bf6d7fb61f93dad60810165df0fbc22a64369fa3;hpb=c1f2dec91f1d93d184832a008ad5e4a93f6eb022;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index bf6d7fb..843b0f8 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -58,6 +58,7 @@ isutfenv() { case "$LANG $CHARSET $LANGUAGE" in *utf*) return 0 ;; + *UTF*) return 0 ;; *) return 1 ;; esac } @@ -393,7 +394,7 @@ fi # {{{ display battery status on right side of prompt via running 'BATTERY=1 zsh' if [ -n "$BATTERY" ] ; then - if [ -x =acpi ] ; then + if [ -x $(which acpi) ] ; then PERCENT="${(C)${(s| |)$(acpi 2>/dev/null)}[4]}" [ -z "$PERCENT" ] && PERCENT='acpi not present' if [ "${PERCENT%%%}" -lt 20 ] ; then @@ -664,8 +665,8 @@ Enjoy your grml system with the zsh!$reset_color" fi # if cdrecord is a symlink (to wodim) or isn't present at all warn: - if [ -L /usr/bin/cdrecord -o ! -x =cdrecord ] ; then - if [ -x =wodim ] ; then + if [ -L /usr/bin/cdrecord -o ! -x $(which cdrecord) ] ; then + if [ -x $(which wodim) ] ; then alias cdrecord="echo 'cdrecord is not provided under its original name by Debian anymore. See #377109 in the BTS of Debian for more details.