I have setopt extended_glob, I want to exclude all files under ~/.config/zsh that either start with _ or filename is completion.zsh or options.zsh
I have this command:
for f (${${(%):-%x}:P:h:h}/**/([^_|^completion|^options])*.zsh) print $f
It does the job but above command also exclude lazyload.zsh, why above command exclude this pattern? I expected it will print out lazyload.zsh.


