mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
history-substring-search: update to upstream version 2015-04-26
Updates OMZ's copy to commit c4a83561a12b898ff7145856d0e6ae50757e28ba from zsh-users/zsh-history-substring-search
This commit is contained in:
parent
1ae2dcb513
commit
06684f63df
5 changed files with 328 additions and 205 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# This file integrates the history-substring-search script into oh-my-zsh.
|
||||
# This file integrates the zsh-history-substring-search script into oh-my-zsh.
|
||||
|
||||
source "$ZSH/plugins/history-substring-search/history-substring-search.zsh"
|
||||
source "${0:r:r}.zsh"
|
||||
|
||||
if test "$CASE_SENSITIVE" = true; then
|
||||
unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS
|
||||
|
|
@ -10,3 +10,14 @@ if test "$DISABLE_COLOR" = true; then
|
|||
unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
|
||||
unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
|
||||
fi
|
||||
|
||||
|
||||
# Bind terminal-specific up and down keys
|
||||
|
||||
if [[ -n "$terminfo[kcuu1]" ]]; then
|
||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||
fi
|
||||
if [[ -n "$terminfo[kcud1]" ]]; then
|
||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue