This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: pick or semilar
- From: Duncan Roe <duncan_roe at acslink dot net dot au>
- To: cygwin at cygwin dot com
- Date: Fri, 2 Sep 2016 08:54:00 +1000
- Subject: Re: pick or semilar
- Authentication-results: sourceware.org; auth=none
- References: <CA+7cx1rR+pc6cKoL8L6APnJZu3s42xmUEpWdWn8mLj+BxW1V_w@mail.gmail.com> <57C0B8CE.4030101@dinwoodie.org> <CAJ1FpuPk=4w8_azL-ebYTz9M5BWwcnv1E5OkKX7STjXBVVKX+Q@mail.gmail.com>
On Fri, Aug 26, 2016 at 04:28:07PM -0600, Doug Henderson wrote:
> On 26 August 2016 at 15:46, Adam Dinwoodie wrote:
> > On 17/08/2016 15:25, Morten Kjærulff wrote:
> >>
> >> Hi,
> >>
> >> Is there a tool like "pick"
> >> https://github.com/thoughtbot/pick
> >>
> >> in cygwin?
> >
> > I've just taken a brief look at that GitHub page, and it looks to be at
> > least vaguely similar to fzf, which is included with Cygwin. You might want
> > to take a look at that and see if it meets your needs.
> ...
>
> Have you considered the bash select command? The following command
> takes you to the documentation
>
> info bash select
>
> for example:
>
> select fname in *.txt ;
> do
> echo you picked No. ${REPLY}: ${fname} ;
> break ;
> done
>
>
> HTH
>
> Doug
>
For quick documentation of bash select, you can simply enter
help select
at the bash / mintty prompt. Bash has help for most builtins actually,
Cheers ... Duncan.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple