Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2009 21:32:45 +0200
From:      piotr.smyrak@heron.pl
To:        ports@FreeBSD.org
Subject:   Re: Portmaster tcsh completion (Was: Re: Portmaster updates, including multiple -x options)
Message-ID:  <20090915192856.M73103@heron.pl>
In-Reply-To: <4AAFE5B7.2020701@FreeBSD.org>
References:  <4AAF58A0.2000401@FreeBSD.org> <4AAF64FC.4000200@quip.cz> <4AAFE5B7.2020701@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Sep 2009 12:06:31 -0700, Doug Barton wrote
> Miroslav Lachman wrote:
> 
> > When you are talking about completion, I am using this for tcsh:
> > 
> > alias    _PKGS_VeRsIoN_    'ls -1 /var/db/pkg'
> > 
> > complete portmaster    'c/--/(force-config show-work clean-
distfiles
> > clean-distfiles-all \
> >     check-depends help version)/' \
> >     'c/-/(a b B C d D e f F g G h H i l L m n o p r R s t u v w 
x)/' \
> >     'n@*@`_PKGS_VeRsIoN_`@'
> > 

Since we are talking about tcsh completions, here is my approach:

complete {pkg_*,port*} 'n@*@D:/var/db/pkg@ @'



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