hwatch
hwatch is a alternative watch command. That records the result of command execution and can display it history and diffs.[1]
- hwatch [EN] @ Homebrew Formula
Documentation
- man 1 'hwatch' [EN]
Syntax
hwatch [PARAMETER ...] COMMAND [ARGUMENTS ...]
Parameters
- -d [MODE], --differences [MODE]
- Set diff MODE. Highlight changes between updates. If only -d is specified, it will be a watch diff.
- plane
- Do not show diff (default).
- watch
- Diff like watch command. Specifying the -d option applies this mode.
- line
- Can be done diff in line units.
- word
- Can be done diff in line word units.
- -L NUMBER, --limit NUMBER
- Set the NUMBER of history records to keep. Only work in watch mode. Set 0 for unlimited recording. (default: 5000)
- -n INTERVAL, --interval INTERVAL
- Specify update INTERVAL. The command will not allow quicker than 0.001 second interval, in which the smaller values are converted. Both . and , work for any locales.
Examples
- Set alias to replace watch
vi "${HOME}/.profile"
if type -P 'hwatch' >'/dev/null' 2>&1; then
alias watch='hwatch'
fi
References
- ↑ Repository contributors. "hwatch." GitHub. https://github.com/blacknon/hwatch (accessed 05.08.2025)