Launch hline
With your default bash history file (~/.bash_history):
Navigate your history
Move up and down
Use
j or Down to move down one line.Use k or Up to move up one line.The cursor stays centered, and the list scrolls around it for comfortable browsing.Jump quickly
Press
g to jump to the top of your history.Press G (Shift+g) to jump to the bottom.Use Ctrl+d or PageDown to move down half a page.Use Ctrl+u or PageUp to move up half a page.Search and filter
You can filter your history to find specific commands quickly.Enter search mode
Press
/ to enter search mode.The bottom of the screen shows your search query as you type.Type your search
Start typing to filter the history. For example, type
git to show only git commands.Search is case-insensitive and matches anywhere in the command.The results update live as you type.Copy commands
Copy a single command
Navigate to the command you want and pressy to copy it to your clipboard.
You’ll see a confirmation toast: Copied 1 line.
Copy multiple commands
Select commands
Navigate to a command and press
Space to select it.A visual indicator shows selected items.Repeat for each command you want to copy.Copy selected
Press
y to copy all selected commands to your clipboard.You’ll see: Copied N lines where N is the number of selected commands.Commands are copied in the order you selected them, separated by newlines.You can also press
a to select all currently visible (filtered) commands at once.Sort your history
By default, history is sorted by recency (newest first).Cycle sort modes
Press
s to cycle through sort modes:- Recency - newest or oldest first
- Alphabetical - A→Z or Z→A
- Length - short→long or long→short
Exit hline
Pressq to quit and return to your terminal.
Essential keybindings
Navigation
Navigation
Search
Search
/- Enter search modeEnter- Confirm search (in search mode)Esc- Exit search modeCtrl+w- Delete last word (in search mode)Ctrl+u- Clear search query (in search mode)
Selection and copy
Selection and copy
Space- Toggle selection on current linea- Select all visible commandsc- Clear all selectionsy- Copy selected commands (or current if none selected)
Sorting
Sorting
s- Cycle sort mode (recency → alphabetical → length)S- Reverse sort direction
Other
Other
?- Show/hide helpq- Quit
Next steps
Now that you know the basics, explore more features:- Learn about advanced search techniques
- Discover sorting options in detail
- Configure custom history files
- See all keybindings in one place