Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can zsh do smartcase completion like vim's search?

Vim has a "smartcase" feature, which makes searching case insensitive, but only if the search contains all lowercase letters. When you search on any uppercase letters, smartcase assumes you want a case sensitive search. Is there a way to get the same behavior in zsh's tab completion?

like image 938
Jack O'Connor Avatar asked Nov 16 '12 21:11

Jack O'Connor


1 Answers

Take a look at my zshrc file.

https://github.com/martincanaval/arch-conf/tree/master/etc/zsh

I have that functionality you are asking for and I believe this line made it.

zstyle ':completion:*'  matcher-list 'm:{a-z}={A-Z}'
like image 113
lmcanavals Avatar answered Nov 17 '22 20:11

lmcanavals