context-color
context-color copied to clipboard
RED for Root
Great script, it would be good for a --safe option or similar to make Root and all its text output RED. This maybe enforces red for danger when using root.
Hey @DarkTrancer :wave:
I thought about a similar feature already; we could make it possible to associate a pre-defined output (or regexp) of the context command to a given color.
For example, what you precisely want could be achieved with something in the lines of context-color -p -c "whoami" --if-outputs "root" --then-color "red"
or something like (the API could probably be much better, it's just the first idea that comes to my mind).
What do you think?
Sounds great, there is also a way out there choice. Inverse , Red BG and Black text will give it a striking effect, maybe so far as a Virtual Boy style Bright Red BG and dull red text? Whatever you choose will give the script great options.