Skip to main content

Browse Your Bash HistoryLike Never Before

hline is a fast, powerful terminal UI for navigating bash history with centered-cursor scrolling, live filtering, sorting, and multi-select capabilities.

Quick Start

Get hline up and running in seconds

1

Install hline

Install hline from GitHub Releases with a single command:
curl -fsSL https://raw.githubusercontent.com/PedroElizalde01/hline/main/install.sh | bash
The installer will detect your platform and install the binary to ~/.local/bin/hline.
Make sure ~/.local/bin is in your PATH. Add export PATH="$HOME/.local/bin:$PATH" to your shell profile if needed.
2

Launch the TUI

Run hline to browse your bash history:
hline
By default, hline reads from ~/.bash_history. You’ll see a centered-cursor interface with your command history.
3

Navigate and search

Use Vi-style keybindings to navigate:
  • Press j/k or arrow keys to move up and down
  • Press / to enter search mode and filter commands in real-time
  • Press Space to select multiple commands
  • Press y to copy selected commands to clipboard
  • Press q to quit
Press ? at any time to view the full keybindings reference.

Features

Everything you need to navigate your bash history efficiently

Centered Cursor

Smooth scrolling with the cursor always centered on screen, making it easy to browse large history files without losing your place.

Live Search

Filter commands in real-time with case-insensitive search. Type / to enter search mode and see results instantly.

Flexible Sorting

Sort by recency, alphabetical order, or command length. Cycle through modes with s and reverse direction with S.

Multi-Select

Select multiple commands with Space, select all visible with a, and copy to clipboard with y. Perfect for batch operations.

Vi-Style Keybindings

Familiar navigation with j/k, g/G for jumps, Ctrl+d/Ctrl+u for half-page scrolls, and more.

Custom History Path

Browse any history file with the --file option. Great for analyzing history from other systems or users.

Ready to get started?

Install hline and start browsing your bash history with powerful navigation and search capabilities.