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

Re: completing nothing



Micah Elliott wrote:
> I'm wondering if it's possible to do a tab-completion at the very
> start of the command line, with a custom completion (of the empty
> command). I see that there's already some special (non-)behavior in
> that no completion is attempted, but an actual tab is inserted; the

Yes, try:
  zstyle -e ':completion:*:*:-command-:*' tag-order '
      [[ -n $PREFIX$SUFFIX || $1 = messages ]] || 
            { reply=( - ); compadd a b c }'

If that works, write your own completion function to replace the compadd
command in there to complete your list of aliases.

Oliver



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