2 ms·
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 pipelin
by shabble 13y 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.