refactor all history modifications into discrete plugins

This commit is contained in:
cornfeedhobo
2021-01-04 19:37:34 -06:00
parent 5e667ed476
commit 61f727fb96
5 changed files with 34 additions and 20 deletions

View File

@@ -0,0 +1,9 @@
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