HSTR is a terminal-based shell history browser for Bash and Zsh. It provides an interactive suggest box for finding and reusing commands from your local history without repeatedly stepping through entries with Ctrl-R.
The interface filters history as you type and is designed for quickly recalling long or infrequently used commands. HSTR can also curate the history itself: favourite commands can be bookmarked, unwanted entries removed and commands containing sensitive information deleted before they are reused by mistake.
This is free and open source software.
Key Features
- Interactive terminal interface for browsing, filtering and selecting commands from shell history.
- Works with both Bash and Zsh and can emit configuration snippets for each shell.
- Searches command history as text is entered, reducing the need to remember an exact command.
- Ranking is designed to surface useful history entries rather than simply presenting commands in file order.
- Favourite commands can be bookmarked for faster retrieval.
- Individual history entries can be removed directly from the interface.
- Useful for deleting obsolete commands, accidental commands and entries containing sensitive data.
- Supports command tags for organising and locating frequently used commands.
- Can be bound into the shell so the selected command is inserted directly at the prompt for editing or execution.
- Configuration is available through environment variables and generated shell setup.
- Runs in a terminal and does not require a graphical desktop environment.
Website: github.com/dvorka/hstr
Support:
Developer: Martin Dvorak
License: Apache License 2.0

HSTR is written in C and C++. Learn C with our recommended free books and free tutorials. Learn C++ with our recommended free books and free tutorials.
Related Software
| Shell tools | |
|---|---|
| fzf | Command-line fuzzy finder for your shell |
| zoxide | Smarter cd command, inspired by z and autojump |
| broot | Reviewed under our Excellent Utilities series |
| McFly | Also reviewed under our Excellent Utilities series |
| z | Maintains a jump-list of the directories you actually use |
| autojump | Offers a fast way to navigate your filesystem |
| z.lua | Helps you navigate faster by learning your habits |
| HSTR | Bash and zsh shell history suggest box |
| Zsh-z | Fast directory jumping based on frecency |
| enhancd | Next-generation cd command |
| fzy | Simple, fast fuzzy finder for the terminal |
| Navita | Rapid directory traversal |
| Jump | Quick and fuzzy directory jumper |
| walk | Simple and minimalistic terminal navigator |
| lacy | cd alternative that makes navigating much more efficient |
| DF-SHOW | Directory File Show |
| fz | Adds fuzzy search to tab completion of z |
| pazi | Fast autojump helper |
| jumper | Files/directories jumper |
| cdhist | Linux shell cd history directory stack |
| icd | Shell utility that makes changing directories quicker and more convenient |
| SD | Dynamic directory navigation from the command line |
| Dongle | Move around deep directory trees |
| cdwe | cd with env vars |
| fastdiract | Quick shell navigation and command execution |
| zm | cd for lazy people |
| slingshot | Lightweight tool to browse files in the terminal |
| qcd | Quickly change directory |
| nav | Quickly navigate through directories |
| menucd | Directory browser and changer |
| kn | Navigate folders quickly |
| jmp | The superior cd |
| gump | Smarter cd command |
Read our verdict in the software roundup.
| Alternatives to history | |
|---|---|
| McFly | Excellent replacement for Bash’s ctrl-r functionality |
| Atuin | Replaces your existing shell history with a SQLite database |
| HSTR | Bash and zsh shell history suggest box |
| Bevel | Command line history in an SQLite database |
| hiSHtory | Better shell history |
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.