A simple POSIX shell utility that draws horizontal rulers in your terminal to visually separate output.
hr is a command-line utility that draws horizontal rulers across terminal windows to help visually separate and organize output. It solves the problem of losing important information in cluttered terminal logs by creating clear visual dividers between sections of output. The tool automatically detects terminal width and allows customization of the characters used for the rulers.
Developers, system administrators, and command-line users who work extensively in terminal environments and need to organize their output for better readability during debugging or monitoring tasks.
Developers choose hr because it's extremely lightweight (pure POSIX shell with no dependencies), simple to use, and solves a specific pain point in terminal workflow. Unlike manually creating separators or using complex formatting tools, hr provides a dedicated, reliable solution with pattern customization.
A horizontal :straight_ruler: for your terminal
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implemented purely in POSIX shell with tput, making it lightweight and portable without requiring external packages, as highlighted in the README's emphasis on no dependencies.
Supports any character or sequence for rulers, enabling creative ASCII art like 'hr - \'#\' -' for multi-line designs, as demonstrated in the usage examples.
Uses tput to detect terminal width automatically, ensuring rulers span the full window without manual calculations, as noted in the key features.
Easy to install via curl download, Homebrew on OSX, or source compilation, with clear setup instructions provided in the README.
Limited to plain ASCII characters without options for colors, bold, or other terminal enhancements, reducing visual appeal in modern workflows.
Requires a POSIX-compliant shell and tput command, which may fail in environments like Windows without WSL or stripped-down Linux distros.
Only creates horizontal rulers; lacks features for vertical separators, configurable widths, or integration with terminal multiplexers, making it unsuitable for complex layouts.