* Re: Bug#525215: zsh: apt-get now has a purge subcommand
[not found] <20090422231026.GX7367@riva.ucam.org>
@ 2009-04-23 12:33 ` Clint Adams
2009-04-23 12:37 ` Clint Adams
0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2009-04-23 12:33 UTC (permalink / raw)
To: Colin Watson, 525215; +Cc: zsh-workers
On Thu, Apr 23, 2009 at 12:10:31AM +0100, Colin Watson wrote:
> apt-get now has a 'purge' subcommand, as a shorthand for 'remove
> --purge'. Please add support for it to
> /usr/share/zsh/functions/Completion/Debian/_apt. I think it should be
> identical to the handling for 'remove', since 'apt-get purge' (buggily?)
> doesn't support being given packages that are removed but not purged.
Thanks.
Index: Completion/Debian/Command/_apt
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_apt,v
retrieving revision 1.15
diff -u -r1.15 _apt
--- Completion/Debian/Command/_apt 2 Nov 2008 14:12:29 -0000 1.15
+++ Completion/Debian/Command/_apt 23 Apr 2009 12:31:56 -0000
@@ -427,6 +427,7 @@
/$'install\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
/$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \) \| \
/$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
+ /$'purge\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'dist-upgrade\0'/ \| \
/$'dselect-upgrade\0'/ \| \
/$'clean\0'/ \| \
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug#525215: zsh: apt-get now has a purge subcommand
2009-04-23 12:33 ` Bug#525215: zsh: apt-get now has a purge subcommand Clint Adams
@ 2009-04-23 12:37 ` Clint Adams
2009-04-23 12:38 ` Clint Adams
0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2009-04-23 12:37 UTC (permalink / raw)
To: Colin Watson, 525215, zsh-workers
On Thu, Apr 23, 2009 at 12:33:01PM +0000, Clint Adams wrote:
> + /$'purge\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
You'll probably want this too:
Index: Completion/Debian/Command/_apt
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_apt,v
retrieving revision 1.15
diff -u -r1.15 _apt
--- Completion/Debian/Command/_apt 2 Nov 2008 14:12:29 -0000 1.15
+++ Completion/Debian/Command/_apt 23 Apr 2009 12:31:56 -0000
@@ -427,6 +427,7 @@
/$'install\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
/$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \) \| \
/$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
+ /$'purge\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'dist-upgrade\0'/ \| \
/$'dselect-upgrade\0'/ \| \
/$'clean\0'/ \| \
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug#525215: zsh: apt-get now has a purge subcommand
2009-04-23 12:37 ` Clint Adams
@ 2009-04-23 12:38 ` Clint Adams
0 siblings, 0 replies; 3+ messages in thread
From: Clint Adams @ 2009-04-23 12:38 UTC (permalink / raw)
To: Colin Watson, 525215, zsh-workers
On Thu, Apr 23, 2009 at 12:37:06PM +0000, Clint Adams wrote:
> You'll probably want this too:
This is clearly not a good day for me.
Index: Completion/Debian/Command/_apt
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_apt,v
retrieving revision 1.16
diff -u -r1.16 _apt
--- Completion/Debian/Command/_apt 23 Apr 2009 12:36:02 -0000 1.16
+++ Completion/Debian/Command/_apt 23 Apr 2009 12:36:31 -0000
@@ -437,7 +437,7 @@
/$'build-dep\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
/$'autoremove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'help\0/' \| \
- /"[]"/ ':argument-1::compadd "$expl_action[@]" update upgrade install remove dist-upgrade dselect-upgrade clean autoclean check source build-dep autoremove help'
+ /"[]"/ ':argument-1::compadd "$expl_action[@]" update upgrade install remove purge dist-upgrade dselect-upgrade clean autoclean check source build-dep autoremove help'
_apt-get () {
local expl_action expl_packages
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-23 12:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090422231026.GX7367@riva.ucam.org>
2009-04-23 12:33 ` Bug#525215: zsh: apt-get now has a purge subcommand Clint Adams
2009-04-23 12:37 ` Clint Adams
2009-04-23 12:38 ` Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).