context-color icon indicating copy to clipboard operation
context-color copied to clipboard

RED for Root

Open ghost opened this issue 6 years ago • 3 comments

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.

ghost avatar Jun 01 '18 09:06 ghost

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?

ramnes avatar Jun 02 '18 21:06 ramnes

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.

ghost avatar Jun 04 '18 08:06 ghost