File tree Expand file tree Collapse file tree 5 files changed +34
-20
lines changed
Expand file tree Collapse file tree 5 files changed +34
-20
lines changed Original file line number Diff line number Diff line change 2323.gitattributes
2424lint_clean_files.sh
2525
26+ # plugins
27+ #
28+ plugins/available/history.plugin.bash
29+ plugins/available/history-search.plugin.bash
30+ plugins/available/history-substring-search.plugin.bash
31+
2632# themes
2733#
2834themes/90210
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ cite about-plugin
2+ about-plugin ' search history using the prefix already entered'
3+
4+ # enter a few characters and press UpArrow/DownArrow
5+ # to search backwards/forwards through the history
6+ if [[ ${SHELLOPTS} =~ (vi| emacs) ]]; then
7+ bind ' "\e[A":history-search-backward'
8+ bind ' "\e[B":history-search-forward'
9+ fi
Original file line number Diff line number Diff line change 1+ cite about-plugin
2+ about-plugin ' search history using the substring already entered'
3+
4+ # enter a few characters and press UpArrow/DownArrow
5+ # to search backwards/forwards through the history
6+ if [[ ${SHELLOPTS} =~ (vi| emacs) ]]; then
7+ bind ' "\e[A":history-substring-search-backward'
8+ bind ' "\e[B":history-substring-search-forward'
9+ fi
Original file line number Diff line number Diff line change 11cite about-plugin
2- about-plugin ' history manipulation'
3- # enter a few characters and press UpArrow/DownArrow
4- # to search backwards/forwards through the history
5- if [[ ${SHELLOPTS} =~ (vi| emacs) ]]
6- then
7- bind ' "[A":history-search-backward'
8- bind ' "[B":history-search-forward'
9- fi
2+ about-plugin ' improve history handling with sane defaults'
3+
4+ # append to bash_history if Terminal.app quits
5+ shopt -s histappend
6+
7+ # erase duplicates; alternative option: export HISTCONTROL=ignoredups
8+ export HISTCONTROL=${HISTCONTROL:- ignorespace: erasedups}
9+
10+ # resize history to 100x the default (500)
11+ export HISTSIZE=${HISTSIZE:- 50000}
You can’t perform that action at this time.
0 commit comments