Overview
Wrap a long-running command, wait for completion, and notify the channels you care about.
brb is a small command wrapper for terminal work you do not want to watch in
real time. It runs your command, waits for it to finish, sends a completion event
to one or more channels, and exits with the same code as the wrapped command.
How It Works
brbloads your global config.- It resolves the selected channels from
default_channelsor repeated--channelflags. - It runs the wrapped command with inherited
stdin,stdout, andstderr. - It builds a completion event with command, status, timing, exit code, working directory, and host information.
- It delivers that event to each selected channel independently.
- It prints a delivery summary and exits with the wrapped command's exit code.
Platform Support
| Channel | Linux | macOS | Windows |
|---|---|---|---|
desktop | Supported with notify-send | Supported with osascript | Not implemented yet |
webhook | Supported | Supported | Supported |
custom | Supported | Supported | Supported |
Desktop Notifications Depend On System Tools
On macOS, desktop uses osascript. On Linux, it uses notify-send. If that command is missing or fails, only that channel fails; the wrapped command result is still preserved.