]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: fix `reset` with zsh-internal colored stderr hack
authorSimon Ruderich <simon@ruderich.org>
Thu, 7 Sep 2017 10:04:02 +0000 (12:04 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 7 Sep 2017 10:04:02 +0000 (12:04 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index dde2ebbc9effbc43abed62ff60f266f4df30bf15..7222619ca0b86c08de528ba30bc082951f3174a2 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -996,6 +996,11 @@ if [[ $LD_PRELOAD != *libcoloredstderr.so* ]]; then
             printf '\e[91m%s\e[0m' $line
             print -n $'\0'
         done &)
+
+        # Reset doesn't work with this hack.
+        reset() {
+            command reset "$@" 2>&1
+        }
     fi
 fi