delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/08/17:15:21

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 702B7385BC23
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1625778920;
bh=tmzhx49C7RtQhPTW06s4SpijX2wV27jrYHywtYah4UU=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=FF0WKYTfI29fxCGAPbk463jw/FMGXrC0G0ExI+EdnJ8tCJ+zT1W3xYA1BZEn5QQ1/
PAWLnYBHfuvbAieBcVoeUT8d0a2JS3fMrnXgnuMyU73WjKT/k6L9RTwPt9JwYDjows
/MpoXvZjbCO3OdKmal3SPIpLb9R3YuskOlRuWo64=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AC043AA9C29
X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvtddrtdeggdduheefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucgopfhokfffucdluddtmdenucfjughrpefofffvhffujghfgggtsehttddttdevtddvnecuhfhrohhmpeftihgthhgrrhguuceuvggvlhhsuceorhgsvggvlhhsseihrghhohhordgtohhmqeenucggtffrrghtthgvrhhnpefftedvueeuveeitefhudeijeeuudeuveeuheeifeegveejjedtgeeuhefhjedtheenucfkphepleekrddvfeehrddujeehrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopefoieektddtrdhtvggthhhnohhlohhgihhsthdrtghomhdpihhnvghtpeelkedrvdefhedrudejhedrleehpdhmrghilhhfrhhomheprhgsvggvlhhsseihrghhohhordgtohhmpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomh
X-Xfinity-VMeta: sc=10.00;st=legit
X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
Date: Thu, 08 Jul 2021 17:11:10 -0400
To: cygwin AT cygwin DOT com
Subject: Re: search and install packages via bash?
In-Reply-To: <20210708141913.GA21966@tik.uni-stuttgart.de>
References: <20210708084556 DOT GA7359 AT tik DOT uni-stuttgart DOT de>
<bf14fb2b-ddf5-8618-0da3-9ea5531c5877 AT dronecode DOT org DOT uk>
<20210708141913 DOT GA21966 AT tik DOT uni-stuttgart DOT de>
Mime-Version: 1.0
X-Spam-Status: No, score=3.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,
DKIM_SIGNED, DKIM_VALID, FORGED_YAHOO_RCVD, FREEMAIL_FROM, KAM_DMARC_REJECT,
MISSING_MID, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,
SPF_NEUTRAL, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Richard Beels via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Richard Beels <rbeels AT yahoo DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
Message-Id: <20210708211520.702B7385BC23@sourceware.org>

At 07/08/2021 at 10:19, Shakespearean monkeys danced on Ulli 
Horlacher's keyboard and said:
>This part was easy:
>
>W10dev:/usr/local/bin: cygsearch ksh
>Found 449 matches for ksh
>kshisen-debuginfo-17.04.3-1 - kshisen-debuginfo: Debug info for kshisen
><snipped>
>mksh-56c-1 - mksh: MirBSD Korn Shell

1.maybe you saw nothing selected for install because the main 
window's view chooser was to "pending" and not "full"?

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. :)




Cheers!


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019