Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ignored-patterns: only ignore commands, not files
- X-seq: zsh-users 26380
- From: Fourhundred Thecat <400thecat@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: ignored-patterns: only ignore commands, not files
- Date: Thu, 14 Jan 2021 07:31:08 +0100
- Archived-at: <https://zsh.org/users/26380>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/e9873add-7f2f-8051-73f5-db9a9568cbb8%40gmx.ch>
- List-id: <zsh-users.zsh.org>
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