bash search with prefix command

edit or create and add these command in to file ~/.inputrc

# Press up-arrow for previous matching command
"\e[A":history-search-backward
# # Press down-arrow for next matching command
"\e[B":history-search-forward

Leave a Reply

Your email address will not be published. Required fields are marked *