by igor_chubin · 6y ago · 0 comments
Anyway, one can write a small filter, to cut any suspicious sequences from the output off, and add some wrapper like that to your bashrc:
curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }
Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)
curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }