TL;DR — Quick Summary
hwatch is a modern watch command alternative. Diff highlighting, command history, exec on change, custom intervals — monitor command output with style.
hwatch watches commands with history. Diff highlighting, exec-on-change, scrollable logs.
Installation
# macOS
brew install hwatch
# Cargo
cargo install hwatch
Usage
# Watch command
hwatch 'ls -la'
# Custom interval (5 seconds)
hwatch -n 5 'df -h'
# Diff mode
hwatch -d 'date'
# Execute on change
hwatch --exec-on-change 'notify-send "changed!"' 'curl -s status.example.com'
# Color mode
hwatch -c 'ls --color=always'
# Log to file
hwatch -l output.log 'date'
Keybindings
d → toggle diff
h → toggle help
j/k → scroll history
q → quit
Summary
- hwatch is a modern watch alternative with history
- Diff highlighting between consecutive runs
- Exec-on-change triggers for automation
- Scrollable output history with keyboard navigation
- Written in Rust — fast, lightweight