-
Hi, I want to create an RPM file to deploy my custom format and theme files, and also configure lnav to use my custom theme for all users. I install my format and theme files in /etc/lnav, but I haven't found how to set the default theme for all users. I can iterate over each user and run the following command, but it's not a very elegant solution: Any ideas? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can create a file with your desired config, like:
Use |
Beta Was this translation helpful? Give feedback.
You can create a file with your desired config, like:
Use
lnav -h
to check where format files are read from on your system (look under the "Paths" section). For example, if/etc/lnav
is listed, you can put the above contents in a file named/etc/lnav/formats/local/config.theme.json
. lnav should then pick it up. Uselnav -d /tmp/lnav.dbg
to turn on debug logging and check that file if you are having issues.