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

Re: Suggestion for Completion/Unix/Command/_ln



On Sat, Aug 20, 2011 at 09:38, Nikolai Weibull <now@xxxxxxxx> wrote:
> On Fri, Aug 19, 2011 at 22:23, Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
>> On Fri, 19 Aug 2011 13:05:08 +0200
>> Nikolai Weibull <now@xxxxxxxx> wrote:
>>> I have, however, not been able to get _pick_variant to work for
>>> zle/files.  Can someone please suggest a way to handle it?

>> if [[ -n $builtins[ln] ]]; then ...
>>
>> should be good enough to test if ln is being provided by a builtin
>> (possibly not yet loaded).

> OK, thanks!  I changed it to (( ${+builtins[ln]} )), as I like that
> pattern better.
>
> Here’s an updated version.

(I’ve committed it to CVS.  I hope that was alright.)



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