From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) by sourceware.org (Postfix) with ESMTPS id 6AC043AA9C29 for ; Thu, 8 Jul 2021 21:13:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AC043AA9C29 Received: from resomta-ch2-04v.sys.comcast.net ([69.252.207.100]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id 1a1ZmvBnF5RiA1bKqmB7NJ; Thu, 08 Jul 2021 21:13:28 +0000 Received: from M6800.technologist.com ([98.235.175.95]) by resomta-ch2-04v.sys.comcast.net with ESMTPA id 1bKomGKyjbJzn1bKqmqj7z; Thu, 08 Jul 2021 21:13:28 +0000 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@cygwin.com From: Richard Beels Subject: Re: search and install packages via bash? In-Reply-To: <20210708141913.GA21966@tik.uni-stuttgart.de> References: <20210708084556.GA7359@tik.uni-stuttgart.de> <20210708141913.GA21966@tik.uni-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2021 21:13:31 -0000 Message-ID: <20210708211110.7jROza54CZSEjyuTc7ND19bnWJrJKEmlsNlKd49Vt0E@z> 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 > >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!