bat-extras icon indicating copy to clipboard operation
bat-extras copied to clipboard

`crontab` command ?

Open KaKi87 opened this issue 1 year ago • 5 comments

Hi,

Since v0.23.0, crontab -l | batcat -l crontab works.

Would you be interested to make a script for it ?

Thanks

KaKi87 avatar Dec 11 '23 21:12 KaKi87

For printing the crontab? Sure, that should be simple enough to do. I'll give it a go after my finals are over.

eth-p avatar Dec 13 '23 18:12 eth-p

Thanks, and good luck !

KaKi87 avatar Dec 13 '23 18:12 KaKi87

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'

eth-p avatar Feb 15 '24 22:02 eth-p

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-extras script within the bat-extras package 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-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'

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

KaKi87 avatar Feb 16 '24 01:02 KaKi87

Hello ?

KaKi87 avatar Jun 23 '24 12:06 KaKi87