mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-15 10:40:41 +01:00
1.5 KiB
1.5 KiB
bat-extras: batwatch
Watch for changes in one or more files, and print them with bat
.
Please note this watches filesystem files, and not command output like watch(1)
.
Usage
batwatch [OPTIONS] FILE...
Options
Short | Long | Description |
---|---|---|
--watcher=[watcher] |
Use a specific program to watch for file changes. See below for more details. | |
--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:
There is also a fallback poll
watcher available.
Installation
This script is a part of the bat-extras
suite of scripts. You can find install instructions here.
Issues?
If you find an issue or have a feature suggestion, make a pull request or issue through GitHub! Contributions are always welcome.