Install HSTR from PPA. Add my PPA, trust GPG key and install HSTR:
Are you looking for a command that you used recently? Do you want to avoid the need to write long commands over and over again? Are you looking for a tool that is able to manage your favorite commands?
HSTR (HiSToRy) is a command line utility that brings improved
zsh command completion
from the history. It aims to make completion easier and more efficient
HSTR can also manage your command history (for instance you can remove commands that are obsolete or contain a piece of sensitive information) or bookmark your favorite commands.
add PPA to APT sources:
sudo echo -e "\ndeb https://www.mindforger.com/debian stretch main" >> /etc/apt/sources.list
import PPA's GPG key
wget -qO - https://www.mindforger.com/gpgpubkey.txt | sudo apt-key add -
sudo apt update
sudo apt install hstr
Configure HSTR just by running:
hstr --show-configuration >> ~/.bashrc
hstr --show-configuration >> ~/.zshrc
For detailed HSTR configuration documentation please refer to Configuration.