X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c703c83e6821d3ddee6c68ca142797a837c2fb4b;hb=c5def1541078b09dc0a8749b0ffa032f44007ffd;hp=bf6d7fb61f93dad60810165df0fbc22a64369fa3;hpb=c1f2dec91f1d93d184832a008ad5e4a93f6eb022;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index bf6d7fb..c703c83 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -393,7 +393,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 +664,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.