mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
apt: Add completion for the autoremove subcommand (#3771)
This commit is contained in:
parent
1040b255c7
commit
730086b0f0
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
function __fish_apt_no_subcommand --description 'Test if apt has yet to be given the subcommand'
|
||||
for i in (commandline -opc)
|
||||
if contains -- $i update upgrade full-upgrade search list install show remove edit-sources purge changelog
|
||||
if contains -- $i update upgrade full-upgrade search list install show remove edit-sources purge changelog autoremove
|
||||
return 1
|
||||
end
|
||||
end
|
||||
|
@ -69,3 +69,6 @@ __fish_apt_subcommand purge -x --description 'Remove packages and delete
|
|||
|
||||
# Changelog
|
||||
__fish_apt_subcommand changelog -r --description 'Download and display package changelog'
|
||||
|
||||
# Autoremove
|
||||
__fish_apt_subcommand autoremove --description 'Remove packages no longer needed as dependencies'
|
||||
|
|
Loading…
Reference in a new issue