Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2013 08:35:31 +0300
From:      "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Searching the port tree with portmaster?
Message-ID:  <20130816083531.5e70c7ce@laptop.minsk.domain>
In-Reply-To: <20130815161241.GG1520@spamcop.net>
References:  <F190CCA1-DF98-4EEA-8C14-E5AC3BC86AF0@kreme.com> <CA%2BtpaK1QS=dhgkWsJCq2nM8%2BgPbMTO4jXxoRSK5yorDJCMXHmQ@mail.gmail.com> <090F0843-3C20-4B32-8670-C990FA4579BA@kreme.com> <20130815161241.GG1520@spamcop.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Aug 2013 12:12:41 -0400
Jim Trigg <jtrigg@spamcop.net> wrote:

> On Thu, Aug 15, 2013 at 09:45:30AM -0600, LuKreme wrote:
> > On 15 Aug 2013, at 00:56 , Sergey V. Dyatko
> > <sergey.dyatko@gmail.com> wrote:
> > 
> > > man ports
> > 
> > > /search[enter]
> > 
> > cd /usr/ports && make search name=pear- 
> > cd /usr/ports && make search name=pear- xname='ht(tp|ml)'
> > 
> > Well, OK. That seems a lot more effort, and loses your current
> > directory, but that does work. It's fugly though.
> 
> OK, so "alias search='make -C /usr/ports search'".  Then you can, as
> needed, "search name=whatever" (or whatever criteria you want to use).
> 
> Jim

2 aliases from my .cshrc:

alias search_name    "make -C /usr/ports/
search name='\!*' display=name,path,info" 

alias search_key    "make -C /usr/ports/ search key='\!*'
display=name,path,info"

search_[name|key] smthng


-- 
wbr, tiger



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130816083531.5e70c7ce>