diff --git a/modules/completion/external b/modules/completion/external index 0331b29..67921bc 160000 --- a/modules/completion/external +++ b/modules/completion/external @@ -1 +1 @@ -Subproject commit 0331b2908f93556453e45fa5a899aa21e0a7f64d +Subproject commit 67921bc12502c1e7b0f156533fbac2cb51f6943d diff --git a/modules/history-substring-search/README.md b/modules/history-substring-search/README.md index 3a109c5..e7c55c5 100644 --- a/modules/history-substring-search/README.md +++ b/modules/history-substring-search/README.md @@ -65,6 +65,42 @@ _`${ZDOTDIR:-$HOME}/.zpreztorc`_: zstyle ':prezto:module:history-substring-search' globbing-flags '' ``` +### Case sensitive search + +To set the search case-sensitivity, add the following line to +_`${ZDOTDIR:-$HOME}/.zpreztorc`_: + +```sh +zstyle ':prezto:module:history-substring-search' case-sensitive 'yes' +``` + +### Fuzzy search + +To enable search for fuzzy matches, add the following line to +_`${ZDOTDIR:-$HOME}/.zpreztorc`_: + +```sh +zstyle ':prezto:module:history-substring-search' fuzzy 'yes' +``` + +### Unique results + +To enable unique results, add the following line to +_`${ZDOTDIR:-$HOME}/.zpreztorc`_: + +```sh +zstyle ':prezto:module:history-substring-search' unique 'yes' +``` + +### Prefixed search + +To enable prefixed search matches, add the following line to +_`${ZDOTDIR:-$HOME}/.zpreztorc`_: + +```sh +zstyle ':prezto:module:history-substring-search' prefixed 'yes' +``` + ## Authors _The authors of this module should be contacted via the [issue tracker][5]._ diff --git a/modules/history-substring-search/external b/modules/history-substring-search/external index 0f80b8e..400e58a 160000 --- a/modules/history-substring-search/external +++ b/modules/history-substring-search/external @@ -1 +1 @@ -Subproject commit 0f80b8eb3368b46e5e573c1d91ae69eb095db3fb +Subproject commit 400e58a87f72ecec14f783fbd29bc6be4ff1641c diff --git a/modules/history-substring-search/init.zsh b/modules/history-substring-search/init.zsh index 0de7891..54e8b00 100644 --- a/modules/history-substring-search/init.zsh +++ b/modules/history-substring-search/init.zsh @@ -38,6 +38,18 @@ if ! zstyle -t ':prezto:module:history-substring-search' color; then unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_{FOUND,NOT_FOUND} fi +if zstyle -t ':prezto:module:history-substring-search' fuzzy; then + HISTORY_SUBSTRING_SEARCH_FUZZY=1 +fi + +if zstyle -t ':prezto:module:history-substring-search' unique; then + HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1 +fi + +if zstyle -t ':prezto:module:history-substring-search' prefixed; then + HISTORY_SUBSTRING_SEARCH_PREFIXED=1 +fi + # # Key Bindings # diff --git a/modules/prompt/external/pure b/modules/prompt/external/pure index 2f13dea..87e6f5d 160000 --- a/modules/prompt/external/pure +++ b/modules/prompt/external/pure @@ -1 +1 @@ -Subproject commit 2f13dea466466dde1ba844ba5211e7556f4ae2db +Subproject commit 87e6f5dd4c793f6d980532205aaefe196780606f diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index c901591..7e2e14e 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -76,7 +76,7 @@ if zstyle -T ':prezto:module:utility' safe-ops; then fi # ls -if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*GNU *} ]]; then +if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*(GNU|lsd) *} ]]; then # GNU Core Utilities if zstyle -T ':prezto:module:utility:ls' dirs-first; then diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index ae68a89..b37c431 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -109,6 +109,18 @@ zstyle ':prezto:module:editor' key-bindings 'emacs' # Set the search globbing flags. # zstyle ':prezto:module:history-substring-search' globbing-flags '' +# Enable search case-sensitivity. +# zstyle ':prezto:module:history-substring-search' case-sensitive 'yes' + +# Enable search for fuzzy matches. +# zstyle ':prezto:module:history-substring-search' fuzzy 'yes' + +# Enable search uniqueness. +# zstyle ':prezto:module:history-substring-search' unique 'yes' + +# Enable prefixed search. +# zstyle ':prezto:module:history-substring-search' prefixed 'yes' + # # macOS #