Table of Contents

Bash History Search With Up Down Arrow Key

Add to your ~/.inputrc following settings and the restart your shell

# Respect default shortcuts.
$include /etc/inputrc

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

Also check out following Tutorial if you want to enable autocomplete for command line history

https://www.usessionbuddy.com/post/How-to-Enable-Autocomplete-For-Command-Line-History-In-Bash-and-Zsh/

Related Posts

1
2
3
4