History completion
There are multiple ways of exploring one's bash history. Some of them are hidden or disabled by default. I propose here some quick history completion.
History completion
Readline commands are small utilities that can be associated with keystrokes or keyboard shortcuts in your terminal, using the bind command.
One available feature is history completion. See for yourself!
.bashrc setting
# Easily navigate through history with Ctrl-<Up arrow> and Ctrl-<Down arrow>
bind '"\e[1;5A":history-search-backward'
bind '"\e[1;5B":history-search-forward'
Alternative .bashrc setting
# Easily navigate through history with <Page Up> and <Page Down> (add Shift with MacOS)
bind '"\e[5~":history-search-backward'
bind '"\e[6~":history-search-forward'