Bug#524156: [fish] apt-get completion doesn't recognize the autoremove command
Hi Adrian, Someone else reported this upstream as https://github.com/fish-shell/fish-shell/issues/652 and it got fixed in aa78292c. The released fix is in 2.0.0. For the record, `autoremove` doesn't take package arguments, which is why it wasn't added to `__fish_apt_use_package`. Cheers, David Adam fish committer zanc...@ucc.gu.uwa.edu.au -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#524156: [fish] apt-get completion doesn't recognize the autoremove command
Package: fish Version: 1.23.1-1 Severity: normal Tags: patch apt-get autortab 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.0 +0100 +++ share/completions/apt-get.fish 2009-04-15 08:22:24.0 +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'