Os comandos readline que você está procurando são os comandos history-search-* :
history-search-forward
Search forward through the history for the string of characters between the start of the current line and the current cursor position (the point). This is a non-incremental search.
history-search-backward
Search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search.
Vinculando-os ao seu .inputrc , assim:
"\e[A": history-search-backward # arrow up
"\e[B": history-search-forward # arrow down
permitirá que você insira os primeiros caracteres de um comando e, em seguida, use as teclas Up e Abaixo para percorrer apenas os comandos em .bash_history que começam com essa string.
Por exemplo, inserir vi e Up levará você ao primeiro comando anterior, começando com vi , como vim somefile . Digitar Up leva você para a próxima instância anterior, e assim por diante.
Você pode ler mais sobre todas as ligações readline aqui: link