BATWATCH(1)

πŸ“¦ version 2024.08.24, in arch rolling

🌸 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 to bat. so literally anything else you throw at it? bat catches 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