mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 18:39:26 +00:00
committed by
Sorin Ionescu
parent
5232191cbe
commit
fb9a20591f
@ -1,7 +1,7 @@
|
||||
History Substring Search
|
||||
========================
|
||||
|
||||
Integrates [zsh-history-substring-search][1] into Oh My Zsh, which implements
|
||||
Integrates [zsh-history-substring-search][1] into Prezto, which implements
|
||||
the [Fish shell][2]'s history search feature, where the user can type in any
|
||||
part of a previously entered command and press up and down to cycle through
|
||||
matching commands.
|
||||
@ -24,7 +24,7 @@ Settings
|
||||
To enable case-sensitivity for this module only, add the following line to
|
||||
*zshrc*:
|
||||
|
||||
zstyle ':omz:module:history-substring-search' case-sensitive 'yes'
|
||||
zstyle ':prezto:module:history-substring-search' case-sensitive 'yes'
|
||||
|
||||
### Highlighting
|
||||
|
||||
@ -33,7 +33,7 @@ positive results.
|
||||
|
||||
To enable highlighting for this module only, add the following line to *zshrc*:
|
||||
|
||||
zstyle ':omz:module:history-substring-search' color 'yes'
|
||||
zstyle ':prezto:module:history-substring-search' color 'yes'
|
||||
|
||||
Authors
|
||||
-------
|
||||
@ -45,5 +45,5 @@ Authors
|
||||
|
||||
[1]: https://github.com/zsh-users/zsh-history-substring-search
|
||||
[2]: http://fishshell.com
|
||||
[3]: https://github.com/sorin-ionescu/oh-my-zsh/issues
|
||||
[3]: https://github.com/sorin-ionescu/prezto/issues
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Integrates history-substring-search into Oh My Zsh.
|
||||
# Integrates history-substring-search into Prezto.
|
||||
#
|
||||
# Authors:
|
||||
# Suraj N. Kurapati <sunaku@gmail.com>
|
||||
@ -7,7 +7,7 @@
|
||||
#
|
||||
|
||||
# Load dependencies.
|
||||
omodload 'editor'
|
||||
pmodload 'editor'
|
||||
|
||||
# Source module files.
|
||||
source "${0:h}/external/zsh-history-substring-search.zsh"
|
||||
@ -16,11 +16,11 @@ source "${0:h}/external/zsh-history-substring-search.zsh"
|
||||
# Styles
|
||||
#
|
||||
|
||||
if zstyle -t ':omz:module:history-substring-search' case-sensitive; then
|
||||
if zstyle -t ':prezto:module:history-substring-search' case-sensitive; then
|
||||
unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS
|
||||
fi
|
||||
|
||||
if ! zstyle -t ':omz:module:history-substring-search' color; then
|
||||
if ! zstyle -t ':prezto:module:history-substring-search' color; then
|
||||
unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_{FOUND,NOT_FOUND}
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user