Open rkv0id opened 2 years ago
I'm using zsh as well and can't reproduce this issue. Could you past your .zshrc
somewhere? Maybe there is an option somewhere that makes the behaviour different.
(tested using zsh 5.9 on linux)
Another possibility - is the sed
command GNU sed
or something more limited? \|
is a GNU-ism - perhaps we should split that into two s
commands for maximum portability.
Ah indeed. I just tested with zsh 5.9 on FreeBSD and i am now able to reproduce the bug
Indeed, when I pointed to GNU-sed, the out-of-box config worked just fine.
The auto-completion in
zshell
has a weird output when it comes to composed arguments/flags. As an example, here's the output of the opam auto-completion for theopam switch
command:To solve this, I had to modify all the sed patterns that try to replace the
\N'45'
character by-
in thecomplete.zsh
script as such:'s%\\-\|\\N'"'45'"'%-%g'
to's%\\N'"'45'"'%-%g'
This way, the output of completions is fixed for all composed flags. Sameopam switch
completion example: