bat-extras
bat-extras copied to clipboard
`crontab` command ?
Hi,
Since v0.23.0, crontab -l | batcat -l crontab works.
Would you be interested to make a script for it ?
Thanks
For printing the crontab? Sure, that should be simple enough to do. I'll give it a go after my finals are over.
Thanks, and good luck !
Hi @KaKi87! I did some digging around how bat-extras is packaged by people other than myself, and I'm having second thoughts about making simple scripts for extremely specific purposes. It appears that distros package every bat-extras script within the bat-extras package rather than splitting them out into individual packages [Arch] [Homebrew] [Fedora] [Nix], and I'm concerned that adding a bunch of extra utilities might cause bat-extras to be dropped from repositories if it becomes bloated.
Perhaps I could make a tutorial/guide to teach others how to use the provided utilities in bat-extras to create their own scripts?
In the meantime, a shell alias should work for your use case:
alias cronbat='crontab -l | batcat -l crontab'
Hi,
That's funny I was just planning on asking you for news tomorrow. 😂
I'm having second thoughts about making simple scripts for extremely specific purposes. It appears that distros package every
bat-extrasscript within thebat-extraspackage rather than splitting them out into individual packages
I'm sorry I don't know what you mean, and I don't know anything about packaging, plus I use Debian-based distros, nevertheless I would highly regret not having this.
Perhaps I could make a tutorial/guide to teach others how to use the provided utilities in
bat-extrasto create their own scripts?
In the meantime, a shell alias should work for your use case:
alias cronbat='crontab -l | batcat -l crontab'
I know I can do that but it's not what I'm looking for : what I want is a no-config solution, i.e. that just works on apt install for all users and without ~/.bashrc changes.
Thanks
Hello ?