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:
2020-11-02 15:22:39 +01:00
parent db5fe9fcd3
commit f487261365
2 changed files with 10 additions and 5 deletions

View File

@@ -101,6 +101,11 @@
python3 -c \
"from urllib import parse; print(parse.unquote(\"$*\"), end=\"\")"
}'
# Workaround for stack smash when using stderred
alias gpg='
env LD_PRELOAD="$(
sed "s/[^:]*libstderred.so:\?//;s/:$//" <<<"$LD_PRELOAD"
)" gpg'
# Named directories
hash -d docs=~/docs