Portmaster tcsh completion (Was: Re: Portmaster updates, including multiple -x options)

piotr.smyrak at heron.pl piotr.smyrak at heron.pl
Tue Sep 15 19:52:29 UTC 2009


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@ @'


More information about the freebsd-ports mailing list