Try a useful new visualisation of your Bash history
HSTR 1.27.0, Mattermost 5.2, Tardis 1.0.2 and Audacious 3.10 reviewed
Ctrl+R is an often-used shortcut by anyone who works with the command line. It brings up a searchable view of the command history, and saves a lot of time re-entering long commands. The HSTR command line utility improves the command completion feature and makes it more efficient than Bash’s default. The utility reads through the .bash_history file to provide suggestion functionality to filter the commands. Additionally, you can use the Ctrl+/ key combination to display the most frequently used commands. Press the keys again to cycle through several predefined sorting orders, such as the length and time-stamps of the commands.
Besides the usual completion feature, HSTR enables you to remove commands (such as those with typos or containing sensitive information like passwords) and also allows you to bookmark often used ones for faster retrieval.
HSTR isn’t available in the repositories of any distributions, but its developer packages it for many popular distributions including Fedora, Ubuntu, OpenSUSE, Gentoo, Arch and others. Follow the simple instructions on GSTR’s GitHub page in order to install the utility and then invoke it using the hh or hstr command.
aboveWhile HSTR can be used straight out of the box, the utility offers configurable parameters