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

No way to disable colour output of crontab -l #81

Closed
jwakely opened this issue Mar 19, 2021 · 4 comments
Closed

No way to disable colour output of crontab -l #81

jwakely opened this issue Mar 19, 2021 · 4 comments

Comments

@jwakely
Copy link

jwakely commented Mar 19, 2021

As noted at https://bugzilla.redhat.com/show_bug.cgi?id=1838180

there should be at least some way to disable all colorization for the tool itself. at a system level, redhat has "COLOR none" in /etc/DIR_COLORS for ls which stops "--color=auto" alias from activating. there is also a no-color initiative at https://no-color.org/

You can do crontab -l | cat but I agree with the bug reporter that a way to disable the colours through config would be preferable. Even just a --no-color option would be an improvement.

@t8m
Copy link
Member

t8m commented Mar 19, 2021

Adding an option would be an overkill. But supporting NO_COLOR environment variable is IMO worth it. I'll do that.

@jwakely
Copy link
Author

jwakely commented Mar 19, 2021

Thanks! Yes, I agree a new option that is only useful for the -l option doesn't make much sense.

@t8m
Copy link
Member

t8m commented Mar 19, 2021

Fixed in 765a745

@t8m t8m closed this as completed Mar 19, 2021
@jwakely
Copy link
Author

jwakely commented Mar 19, 2021

I've created a pull request to add cronie to the list of software honouring NO_COLOR at no-color.org

jcs/no_color#113

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

No branches or pull requests

2 participants