Jump to content
Kev

hstr-rs - is shell history suggest box. Like hstr, but with pages.

Recommended Posts

It was initially made for bash, but it supports zsh and ksh, too. If you want to use it with tcsh, make sure tcsh saves its history to ~/.tcsh_history.

 

Installation

Make sure you have ncurses packages installed.

 

sudo apt install libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev

 

Then run:

 

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

 

If on bash, add this to .bashrc:

 

# append new history items to .bash_history
shopt -s histappend 
# don't put duplicate lines or lines starting with space in the history
HISTCONTROL=ignoreboth
# increase history file size
HISTFILESIZE=1000000
# increase history size
HISTSIZE=${HISTFILESIZE}
# append new entries from memory to .bash_history, and vice-versa
export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}"

 

Usage

Making an alias should be the most convenient option, so you can add this to ~/.bash_aliases:

 

alias hh=hstr-rs

 

Screencast

 

hstr-rs.gif

 

Download: hstr-rs-master.zip

 

or

 

git clone https://github.com/adder46/hstr-rs.git

 

Source

  • Downvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...