On Wed, 28 Jun 2023 11:10:05 -0700
stan <upai...@zoho.com> wrote:

> On Wed, 28 Jun 2023 10:17:45 -0700
> stan via users <users@lists.fedoraproject.org> wrote:
> 
> > On Wed, 28 Jun 2023 17:08:38 +0100
> > Patrick O'Callaghan <pocallag...@gmail.com> wrote:  
> 
> > > See also 'man journalctl' and search for PAGER.    
> > 
> > This is also relevant.  Unfortunately, it seems that journalctl
> > ignores the input of SYSTEMD_LESS.  It is hard to tell, because
> > there is no example of the kind of input it wants or whether it
> > only accepts options without arguments, as the default options all
> > are.  I would probably have to look at the journalctl code to
> > determine if they are hard coded into the program.  There is no
> > configuration file to set them in any case.  
> 
> So, the code for journalctl shows it reading the options from the
> variables, and invoking less with those options, but it doesn't seem
> to affect the behavior of running journalctl, or at least the colors
> don't change.  Maybe I'll look more closely at some point, but no joy
> for now.

Operator error.  Exporting the wrong name because of a cut and paste.
Once I fixed that, definitely works to change colors in journalctl
output, will have to tune it to get what I want.
I put this in my .bashrc so everything is set on login.
SYSTEMD_PAGER=less
export SYSTEMD_PAGER
SYSTEMD_LESS="[list of less options]"
export SYSTEMD_LESS
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to