table of contents
other versions
- Tumbleweed 2024.08.24-2.2
- Leap-15.6
| BATWATCH(1) | General Commands Manual | BATWATCH(1) |
NAME¶
batwatch - Watch for changes in files or command output, and print them with bat.
DESCRIPTION¶
USAGE¶
batwatch [OPTIONS] FILE...
batwatch [OPTIONS] --command COMMAND [ARG...]
OPTIONS¶
| Short | Long | Description |
| --command | -x | |
| --file | -f | |
| --watcher=[watcher] | Use a specific program to watch for file changes. See below for more details. | |
| --interval=[seconds] | The interval for executing commands. | |
| --clear | Clear the screen before printing the files. This is enabled by default. | |
| --no-clear | Do not clear the screen before printing the files. | |
| --color | Force color output. | |
| --no-color | Force disable color output. |
All remaining options are passed through to bat.
WATCHERS¶
Batwatch uses external programs to watch for file changes.
Currently, the following programs are supported:
- entr
There is also a fallback poll watcher available.