hstr-rshstr, but with paging, Unicode, and fuzzy matching

联合创作 · 2023-09-30 04:16

hstr-rs

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/xvm32/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.

浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报