Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RED for Root #6

Open
ghost opened this issue Jun 1, 2018 · 3 comments
Open

RED for Root #6

ghost opened this issue Jun 1, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jun 1, 2018

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.

@ramnes
Copy link
Owner

ramnes commented Jun 2, 2018

Hey @DarkTrancer 👋

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?

@ghost
Copy link
Author

ghost commented Jun 4, 2018

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.

@ramnes ramnes added the enhancement New feature or request label Aug 16, 2018
@ramnes
Copy link
Owner

ramnes commented May 24, 2024

A simpler approach: context-color --force 32948=191 where 32948 is the context hash (as given by context-color -d) and 191 the color the user wants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant