Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion question
- X-seq: zsh-users 5213
- From: Byron Foster <byron@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Completion question
- Date: Thu, 08 Aug 2002 23:51:39 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hello,
I can't figure out how to configure the completion system so that
only directories are listed after typing 'rm -r ' at the command line,
but without the the '-r' option only list files. Can I do this by only
using styles, or do I need to write an _rm function? Im using zsh 4.0.4
so far for only listing files I have
zstyle ':completion:*:complete:rm:*' file-patterns '*(^-/):files'
Of course this breaks 'rm -r'
Thanks,
Byron
Messages sorted by:
Reverse Date,
Date,
Thread,
Author