public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Adam Dinwoodie <adam@dinwoodie.org>
To: "Cygwin (cygwin@cygwin.com)" <cygwin@cygwin.com>
Subject: Re: search and install packages via bash?
Date: Sat, 10 Jul 2021 15:13:09 +0100	[thread overview]
Message-ID: <CA+kUOano_G-ZqQzi5O_9igB09EAzUbLjbCfmW36HSP80NX=X0w@mail.gmail.com> (raw)
In-Reply-To: <20210708211539.705673AA9C30@sourceware.org>

On Thu, 8 Jul 2021 at 22:15, Richard Beels via Cygwin wrote:
> 2, use fzf.  i don't use it (yet?) but it should be something like:
>
> cyginst() { # a little function to install a package from the cli
> _pkg=$(cygsearch "$1" | fzf | cut -f1 -d'-' )
> /setup-x86_64.exe  ... -P "$_pkg"
> }
>
> the cut is to strip off all the versioning choices.  i think fzf can
> even allow you to edit the choice you make to eliminate that.  or you
> you change the cut to a sed and only strip off '-[0-9]*' for apps
> that use a dash in their real name (can't think of one ottomh, but...).
>
> fzf is packaged for cygwin and the github page has more help than I
> cared to read when I found it. :)

Just as a warning: the fzf package available on Cygwin is an old and
unsupported version. The upstream fzf project switched to Go, which
doesn't have a Cygwin compiler, so bringing it up-to-date is not an
easy project.

In particular, while I expect the core fzf function is absolutely
fine, it's not safe to assume that anything in particular in the
upstream documentation matches the behaviour of the fzf version
available through Cygwin.

  parent reply	other threads:[~2021-07-10 14:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08  8:45 Ulli Horlacher
2021-07-08 12:13 ` Jon Turney
2021-07-08 13:53   ` Ulli Horlacher
2021-07-08 14:46     ` Marco Atzeri
2021-07-08 15:02       ` Ulli Horlacher
2021-07-08 14:19   ` Ulli Horlacher
2021-07-08 21:11     ` Richard Beels
2021-07-08 21:11     ` Richard Beels
2021-07-08 21:11     ` Richard Beels
     [not found]     ` <20210708211451.0007A3888821@sourceware.org>
2021-07-10  4:14       ` Richard Beels
     [not found]     ` <20210708211539.705673AA9C30@sourceware.org>
2021-07-10 14:13       ` Adam Dinwoodie [this message]
2021-07-10 14:20         ` Eliot Moss
2021-07-08 18:28 ` Thomas Wolff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+kUOano_G-ZqQzi5O_9igB09EAzUbLjbCfmW36HSP80NX=X0w@mail.gmail.com' \
    --to=adam@dinwoodie.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).