From: Simon Ruderich Date: Thu, 7 Sep 2017 10:04:02 +0000 (+0200) Subject: zsh/rc: fix `reset` with zsh-internal colored stderr hack X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=sidebyside;h=363110875986d10c37122e5b430f357520504d8a;hp=-c;p=config%2Fdotfiles.git zsh/rc: fix `reset` with zsh-internal colored stderr hack --- 363110875986d10c37122e5b430f357520504d8a diff --git a/zsh/rc b/zsh/rc index dde2ebb..7222619 100644 --- 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