mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
fix(history-substring-search): honor CASE_SENSITIVE variable (#13360)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 2s
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 2s
This commit is contained in:
parent
c6482fa5be
commit
853680fd62
1 changed files with 8 additions and 1 deletions
|
|
@ -45,7 +45,14 @@
|
|||
|
||||
: ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=magenta,fg=white,bold'}
|
||||
: ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=white,bold'}
|
||||
: ${HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS='i'}
|
||||
|
||||
# Respect CASE_SENSITIVE setting for case sensitivity
|
||||
if [[ "$CASE_SENSITIVE" = true ]]; then
|
||||
: ${HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS=''}
|
||||
else
|
||||
: ${HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS='i'}
|
||||
fi
|
||||
|
||||
: ${HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=''}
|
||||
: ${HISTORY_SUBSTRING_SEARCH_FUZZY=''}
|
||||
: ${HISTORY_SUBSTRING_SEARCH_PREFIXED=''}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue