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

Completion question




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