Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: menuselection with manpages
- X-seq: zsh-users 10281
- From: Frank Terbeck <frank.terbeck@xxxxxxxxxxxxxx>
- To: zsh users <zsh-users@xxxxxxxxxx>
- Subject: Re: menuselection with manpages
- Date: Fri, 19 May 2006 06:38:04 +0200
- In-reply-to: <060518202832.ZM10226@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.16.1 i686
- References: <20060517151015.GK7968@xxxxxxxxxxxxxxx> <20060518220907.GX7968@xxxxxxxxxxxxxxx> <060518202832.ZM10226@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>:
> On May 19, 12:09am, Frank Terbeck wrote:
> } Subject: Re: menuselection with manpages
> } - compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
> } + compadd "$@" -P "$sect " - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
> } % man 5 5 crontab
> } which is not what I would want. How could I get this to work sanely?
>
> Try:
> if ((CURRENT > 2))
> then compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
> else compadd "$@" -P "$sect " - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
> fi
Hi Bart,
That's not what I had in mind first, but actually I like it even
better. And quite simple... why didn't I try that? :-)
Thanks a lot.
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author