zsh 대소문자를 구분하지 않는 한자 완성

zsh 대소문자를 구분하지 않는 한자 완성

대소 .zshrc문자를 구분하지 않는 탭 완성에는 다음이 있습니다. 탭 완료에 실패했는데 이유를 모르겠습니다.

autoload -U compinit && compinit

zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*'

$ ls
Elephant/ ElephantExample/

$ cd ex[TAB]  # completion doesn't do anything here
$ cd x[TAB]   # completion works as expected --> ElephantExample/
$ cd E[TAB]   # completion works as expected --> Elephant
$ cd e[TAB]   # completion works as expected --> Elephant

누군가 나에게 이것을 설명해 줄 수 있습니까? 이것은 zsh 버그입니까?

편집: 저는 "zsh 5.0.7 (x86_64-apple-darwin13.4.0)"을 사용하고 있습니다.

답변1

스타일을 다음으로 변경합니다.

 zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' \
  '+l:|?=** r:|?=**'

ex<tab>확장은 허용되지만 ElephantExample원치 않는 부작용이 발생할 수 있습니다.

관련 정보