Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suggestion for Completion/Unix/Command/_ln
- X-seq: zsh-workers 29712
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Suggestion for Completion/Unix/Command/_ln
- Date: Sat, 20 Aug 2011 09:38:08 +0200
- Cc: Zsh Workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=UG3c6oIAAAbpyHwLqXy+nBI2Ke1frxOhfyubsmfm0wU=; b=UZMsROK0a5YcjfM0MjiG4gvnns7zmIXCdbX0ZomLevchQIWo74Pvv6ULNR7cq5KMeC CCNYpUjuoxykQPW4maLMoP5yQLBYZfdSOxfIJusk/hp0dLYW3+4JDP8TFzEU+2nUPEwH hQwkIQpZcFFbPfVQjK+rlro79u0Se+kMX8myc=
- In-reply-to: <20110819212323.6df1a054@pws-pc.ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CADdV=MteKpg6z8hyFV9-U0tMbrY8jWfG+BsrzX5DCTpkJEz2Tg@mail.gmail.com> <20110819212323.6df1a054@pws-pc.ntlworld.com>
- Sender: nikolai.weibull@xxxxxxxxx
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.
Attachment:
_ln
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author