BATWATCH(1)
πΈ BATWATCH(1) β the general commands manual β¨
okay bestie so picture this: a whole manual page about batwatch, living its best life in the General Commands Manual. That's the vibe. Let's get into it π
π NAME π
batwatch β watches for changes in your files or in command output, and then prints the goods with bat. π
π DESCRIPTION π
β¨ USAGE β¨
batwatch [OPTIONS] FILE...
batwatch [OPTIONS] --command COMMAND [ARG...]
yes that's it. that's the whole usage. two modes, both iconic, both slaying π¦
π₯ OPTIONS π₯
-x,--commandβ run a command instead of watching files, bestie. command mode activated π-f,--fileβ file mode, for when you're watching actual files instead β¨- *
--watcher=[watcher]* β okay so this one lets you pick a specific program to watch for file changes with. there are deets down below in the WATCHERS section, go look π - *
--interval=[seconds]* β the interval for executing commands. yes, seconds, and yes, you get to decide π --clearβ clears the screen before printing the files. this is enabled by default, so it's already doing the most π§--no-clearβ do not clear the screen before printing the files. for when you want the chaos to accumulate π--colorβ force color output. make it pretty, no questions asked π¨--no-colorβ force color output OFF. periodt.
and here's the fun part: all remaining options are passed through tobat. so literally anything else you throw at it?batcatches it. king behavior tbh π«Ά
π¦ WATCHERS π¦
batwatch doesn't do the watching itself β it outsources to external programs (very main character of it, delegating). currently, the following programs are supported:
entr
there's also a fallback poll watcher available, so if the fancy stuff isn't around, it's still got you. no cap π
and that's the whole page bestie!! π this was the batwatch(1) manual page from the General Commands Manual β there's no version or date info tacked on, just the name and the manual, so we're signing off clean. go watch some files β¨π
π¦ where this page comes from
- arch rolling: bat-extras 2024.08.24-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms