TL;DR — Quick Summary

hwatch is a modern watch replacement with diff highlighting, command history, and a TUI. See what changed between runs — not just the latest output, but a scrollable history of every execution.

hwatch watches commands with memory. See what changed, browse history, diff highlights.

Installation

# macOS
brew install hwatch

# Cargo
cargo install hwatch

Usage

# Watch a command (default 2s interval)
hwatch 'kubectl get pods'

# Custom interval (5 seconds)
hwatch -n 5 'docker ps'

# With diff highlighting
hwatch -d 'ls -la'

# Color diff mode
hwatch --color 'cat /proc/loadavg'

Keybindings

↑/↓      → scroll history
/        → filter output
d        → toggle diff mode
c        → toggle color
0        → first execution
$        → latest execution
q        → quit

Summary

  • hwatch is a modern watch replacement with history
  • Diff highlighting between consecutive runs
  • Scrollable execution history
  • TUI with mouse support
  • Written in Rust — fast, lightweight