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

Re: menu completion



> 2020/05/23 1:12, Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
> 
> echo $ZSH_VERSION
> 5.1.1

I think the problem is in _grep in that old version of zsh.

You can either
(1) upgrade zsh (probably zsh-5.4 or later works), or

(2) download the latest zsh tarball, extract Completion/Unix/Command/_grep
and use it, or

(3) copy /usr/share/zsh/5.1.1/functions/_grep and modify the following line
(around line 13)
    '(-e --regexp -f --file)1: :_guard "^--*" pattern'
to
    '(-e --regexp -f --file)1: :_guard "^-*" pattern'
and use it.



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