• learnbyexample
    link
    English
    310 months ago

    You can do it in Bash as well. Put this in .inputrc:

    "\e[A":history-substring-search-backward
    "\e[B":history-substring-search-forward
    
    # or, if you want to search only from the start of the command
    "\e[A": history-search-backward
    "\e[B": history-search-forward