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

Re: menuselection with manpages



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