Package: fish
Version: 1.23.1-1
Severity: normal
Tags: patch

apt-get autor<tab> doesn't suggest autoremove.

Here is a patch to recognize the autoremove command…

Thanks,

Adrien Grellier


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.26-2-686

Debian Release: squeeze/sid
  500 testing         security.debian.org 
  500 testing         ftp.fr.debian.org 

--- Package information. ---
Depends                   (Version) | Installed
===================================-+-====================
libc6                    (>= 2.3.4) | 2.9-4
libncurses5     (>= 5.6+20071006-3) | 5.7+20090314-1
bc                                  | 1.06.94-3
lynx                                | 
 OR www-browser                     | 



--- share/completions/apt-get.fish.old	2009-04-15 08:20:37.000000000 +0100
+++ share/completions/apt-get.fish	2009-04-15 08:22:24.000000000 +0100
@@ -11,7 +11,7 @@
 
 function __fish_apt_use_package --description 'Test if apt command should have packages as potential completion'
 	for i in (commandline -opc)
-		if contains -- $i contains install remove build-dep
+		if contains -- $i contains install remove autoremove build-dep
 			return 0
 		end
 	end
@@ -27,6 +27,7 @@
 complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'dist-upgrade' --description 'Distro upgrade'
 complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'install' --description 'Install one or more packages'
 complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'remove' --description 'Remove one or more packages'
+complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'autoremove' --description 'Remove all the packages installed automatically'
 complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'source' --description 'Fetch source packages'
 complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'build-dep' --description 'Install/remove packages for dependencies'
 complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'check' --description 'Update cache and check dependencies'

Reply via email to