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

Re: completion for aliased commands does not work



On Nov 1,  6:29am, Mikael Magnusson wrote:
}
} That's actually not true, setting complete_aliases makes completion
} treat aliases as separate commands. :)

Er, I think I we're interpreting "see through" differently.  Obviously
given

    alias diff='colordiff'

then either

    setopt complete_aliases
or
    compdef colordiff=diff

will cause options for "diff" to be completed, instead of looking for
a completion for "colordiff".  On reflection I don't know why I took
Daniel's statement --

> } You'll find ... "diff <TAB>" and "colordiff <TAB>" behave the same

-- to mean that both should *work*.  The other interpretation of "see
through" makes more sense.



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