Hello Stéphane, I installed the package bat (debian testing).
- the command bat had been renamed to batcat to prevent a name clash with another package - crontab is not among the supported languages : $ batcat --list-languages| grep -i cron ==> <nothing> Is there some mean to restore the feature of bat, regarding crontabs? Can users easily customize their color preferences with batcat? Best regards, Georges. Stéphane Blondon a écrit : > Hello everyone, > > I understand the goal and the global strategy. It could be done with > the `bat` package too. > Based on the previous proposal, I show it below the Georges's steps. > > Le jeu. 18 janv. 2024 à 09:29, Georges Khaznadar > <[email protected]> a écrit : > > [...] - modify the manpage crontab.1 to explain how to colourise the output > > of > > `crontab -l`; typically by issuing `crontab -l | spc -t crontab`, > > and explain shortly how one can customize at will the file which defines > > the coulourisation. > > - let the package cron install one file for supercat, > > /etc/supercat/spcrc-crontab; I attach such a file to this e-mail, so > > Stéphane can copy it as ".spcrc-crontab", in order to see how the > > output of `crontab -l | spc -t crontab` looks like. > > - add a recommendation from package cron to package supercat. > > The `bat` package highlights several languages, including crontab. So > it would be simpler because there is no need to add a specific file: > $ crontab -l | bat --language Crontab > > `-l` is usable instead of `--language`. > > For my usage, I will set an alias: > alias crontabl='crontab -l | bat --language Crontab' > > > I'm not sure if adding a `recommends: supercat` is a good idea. > Perhaps adding the ways to highlight crontab in manpage is enough ? > > -- > Stéphane -- Georges KHAZNADAR et Jocelyne FOURNIER 22 rue des mouettes, 59240 Dunkerque France. Téléphone +33 (0)3 28 29 17 70
signature.asc
Description: PGP signature

