dotfiles/.bash_it/plugins/available/history-substring-search.plugin.bash
2022-02-27 20:00:49 +01:00

11 lines
355 B
Bash

# shellcheck shell=bash
cite about-plugin
about-plugin 'search history using the substring 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-substring-search-backward'
bind '"\e[B":history-substring-search-forward'
fi