Fix weird behavior relating to capital letters when completing

https://github.com/zimfw/completion/issues/10
This commit is contained in:
Adam Goldsmith 2023-01-28 10:33:44 -05:00
parent ebf39e2b04
commit a165991e9a

3
.zshrc
View File

@ -54,6 +54,9 @@ setopt INC_APPEND_HISTORY
# rehashes on bin change, might cause performance issues # rehashes on bin change, might cause performance issues
zstyle ':completion:*' rehash true zstyle ':completion:*' rehash true
# Fix completion matching: # https://github.com/zimfw/completion/issues/10
zstyle ':completion:*' matcher-list 'm:{[:lower:]-}={[:upper:]_} r:|[.]=**' '+l:|=*'
# History Substring Search bindings (PageUp and PageDown) # History Substring Search bindings (PageUp and PageDown)
bindkey '^[[5~' history-substring-search-up bindkey '^[[5~' history-substring-search-up
bindkey '^[[6~' history-substring-search-down bindkey '^[[6~' history-substring-search-down