11 lines
332 B
Bash
11 lines
332 B
Bash
|
# shellcheck shell=bash
|
||
|
cite about-plugin
|
||
|
about-plugin 'search history using the prefix already entered'
|
||
|
|
||
|
# enter a few characters and press UpArrow/DownArrow
|
||
|
# to search backwards/forwards through the history
|
||
|
if [[ ${SHELLOPTS} =~ (vi|emacs) ]]; then
|
||
|
bind '"\e[A":history-search-backward'
|
||
|
bind '"\e[B":history-search-forward'
|
||
|
fi
|