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

RE: PATCH: completions for su and implicit fg/bg



                                  Judging by _find, it seems that _normal is
> the way to do this but it would need the shell's name to be on the
> command-line. I've got it to work by pulling the relevant parts out of
> _normal and roughly repeating it.

Correct me if I'm wrong, but don't you simply need to setup $words and set
CURRENT to reflect the word to complete? Something like

words=(sh $words)
((CURRENT++))
_normal

/andrej



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