Files
bash-it/plugins/available/history-substring-search.plugin.bash
cornfeedhobo bdb5289660 Wholesale cleanup of all history plugins
- remove the use of redundant cite
- minor cleanups to history.plugin.bash
- set explicit load orders for history-search and history-substring-search
- add new plugin history-eternal
- replace superfluous trap for managing HISTTIMEFORMAT changes
2021-12-02 09:13:56 -06:00

13 lines
399 B
Bash

# shellcheck shell=bash
about-plugin 'search history using the substring already entered'
# Load after the history plugin
# BASH_IT_LOAD_PRIORITY: 375
# 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