Hacker News new | ask | show | jobs
by shabble 4761 days ago
one problem of the 'alias yourcmd to yourcmd | colorize' is dealing with preserving the return code from the actual command, rather than the last in the pipeline.

It can be done with things liek $PIPESTATUS, but some sort of wrapper/function to do it would be nice.