Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Please make "apt install <tab>" completion work on "local" .deb files



Hi Oliver,

> > I was wonder if you could also include:
> >
> >   *.changes
> >   *.dsc
> >
> > ie. as well as *.deb. All behaviours of path-based .debs can be
> > inherited. Thanks in advance :)
> 
> Do you mean like the following patch - considering all .changes and .dsc
> files alongside .deb?

Exactly.

> -	// '%(.|)/%' -'[[ $subcmd = install ]]' /'[]'/ ':files:package 
> file:_files -g "*.deb(-.)"' \| \
> +	// '%(.|)/%' -'[[ $subcmd = install ]]' /'[]'/ ':files:package 
> file:_files -g "*.(changes|deb|dsc)(-.)"' \| \

Perfect :)


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@xxxxxxxxxx / chris-lamb.co.uk
       `-



Messages sorted by: Reverse Date, Date, Thread, Author