2012-02-01 05:37:51 +01:00
|
|
|
#
|
|
|
|
# Integrates history-substring-search into Oh My Zsh.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Suraj N. Kurapati <sunaku@gmail.com>
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
2011-08-26 08:58:19 +02:00
|
|
|
|
2011-09-11 07:02:10 +02:00
|
|
|
source "${0:h}/history-substring-search.zsh"
|
2011-08-26 08:58:19 +02:00
|
|
|
|
2011-12-26 19:37:53 +01:00
|
|
|
if zstyle -t ':omz:plugin:history-substring-search' case-sensitive; then
|
2011-08-26 08:58:19 +02:00
|
|
|
unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS
|
|
|
|
fi
|
|
|
|
|
2011-12-26 19:37:53 +01:00
|
|
|
if ! zstyle -t ':omz:plugin:history-substring-search' color; then
|
2011-08-26 08:58:19 +02:00
|
|
|
unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
|
|
|
|
unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
|
|
|
|
fi
|
2011-08-31 05:16:15 +02:00
|
|
|
|