hstr-rs icon indicating copy to clipboard operation
hstr-rs copied to clipboard

hstr, but with paging, Unicode, and fuzzy matching

hstr-rs

build status

screenshot

hstr-rs is a shell history suggest box. Like hstr, but with pages. As opposed to original hstr which was the inspiration for this project, hstr-rs has pages and provides Unicode support out of the box on both bash and zsh.

There is an ongoing effort to support other shells too. Contributors are very welcome. ​

Installation

​ Make sure you have ncurses packages installed.

If on Ubuntu: ​

sudo apt install libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev

​ Then run: ​

cargo install --git https://github.com/overclockworked64/hstr-rs.git

​ If on bash, run:

hstr-rs --show-config bash >> ~/.bashrc

...or manually add these lines to your .bashrc.

For zsh, run:

hstr-rs --show-config zsh >> ~/.zshrc

...or manually add these lines to your .zshrc.

Usage

​ The most convenient is to make the alias:

alias hh='hstr-rs'

Then invoke the program with hh.

Licensing

Licensed under the MIT License. For details, see LICENSE.