2

I have the following line in my zshrc to make filename completions case-insensitive:

zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'

This works most of the time but I’ve noticed that if I type “git add ” and then press Tab then the completions I get are case-sensitive.

Is there a different command I should be using to make filename completions case-insensitive? Or do I need to start adding zstyle declarations for individual commands? (And if that’s the answer, what should those declarations look like?)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.