In the terminal, how can I show history while typing? Is this possible? what is the library that I have to install? I think this will boost my productivity while using the terminal, currently I search commands by pressing up-down arrows, but sometimes it take time to reach the command I want..
Something like this:
I might not understand the question but you could put an alias for various commands in .bashrc which is located in your home directory.
as an example to be more specific
choose your editor
sudo gedit `/.bashrc
add the following line (preferably near the bottom and don't forget to use # to describe your alias for future reference)
alias z='df -h'
you may need to reload .bashrc
if you have multiple entries you wish to add it is suggested in the original .bashrc file to create a seperate .bashrc_aliases file.
When you're in the termianl you can press Ctrl+R and then either type in the beginning of the word, or search for a keyword and it'll prompt a suggestion. The Ctrl-R is a reverse serach in the bash_history.
Another way is to use the history command like this: "history 20" and you'll get the twenty latest commands you have used.
This looks like fishshell to me. To install and configure follow the link and instructions