Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

ignored-patterns: only ignore commands, not files



Hello,

I have this in my .zshrc:

 zstyle ':completion:*' ignored-patterns 'foo'

the goal is to ignore command "foo" when autocomleting. But this also
ignores argument foo, (ie file is named foo, as in "ls foo")

is it possible to ignore foo only when it is used as command, and not
when it is used as argument (after another command) ?

thanks,




Messages sorted by: Reverse Date, Date, Thread, Author