zsh: Reenable stderred with workaround for gpg
Using stderred's blacklist does not work. The new alias simply removes the stderred library from LD_PRELOAD for the execution.
This commit is contained in:
@@ -126,11 +126,11 @@ if [[ -d "$ZDOTDIR/autoload" ]]; then
|
||||
fi
|
||||
! command -v direnv >/dev/null 2>&1 || eval "$(direnv hook zsh)"
|
||||
# stderred
|
||||
# if [[ -e "$ZSH_CONF/stderred/build/libstderred.so" ]]; then
|
||||
# export LD_PRELOAD="$ZSH_CONF/stderred/build/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
# export STDERRED_ESC_CODE="$(tput bold && tput setaf 1)"
|
||||
# export STDERRED_BLACKLIST="^(git|curl|wget|swipl)$"
|
||||
# fi
|
||||
if [[ -e "$ZSH_CONF/stderred/usr/share/stderred/stderred.sh" ]]; then
|
||||
comp-source "$ZSH_CONF/stderred/usr/share/stderred/stderred.sh"
|
||||
export STDERRED_ESC_CODE="$(tput bold && tput setaf 1)" # bold red
|
||||
export STDERRED_BLACKLIST="^(git|curl|wget|swipl)$"
|
||||
fi
|
||||
comp-source "$ZSH_CONF/alias.zsh"
|
||||
comp-source "$ZSH_CONF/functions.zsh"
|
||||
comp-source "$ZSH_CONF/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
|
||||
Reference in New Issue
Block a user