Up Arrow history SEARCH on dietpi

I recently changed a couple of my raspberry pi os’s from Raspbian/Raspberry Pi OS to the lighter DietPi. I had previously always installed the zsh shell and ohh my zsh, and frequently utilized the “begin typing and hit up arrow” functionality to grep through previous commands.

In order to get this ability on DietPi’s bash shell, create the file

~/.inputrc

Add the below lines to the .inputrc file

$include /etc/inputrc

## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward

Leave a comment