summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2022-02-22 16:33:55 +0000
committerJulian Andres Klode <jak@debian.org>2022-02-22 16:33:55 +0000
commit3834826b1628f9a7d5540c69aeb7d311faaf02c2 (patch)
tree585a92c26c83c17e91ec808c508403084e03228f
parent4a012436ce6a07dd435dca33b7ee2c41ea94c844 (diff)
parenta6c92473b6106a0ee8d65e9f87874d9c07fb172c (diff)
Merge branch 'bash-complete-autopurge-reinstall-930295' into 'main'
Add bash-completion for autopurge and reinstall (closes: #930295) See merge request apt-team/apt!214
-rw-r--r--completions/bash/apt8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/bash/apt b/completions/bash/apt
index 35716e7a7..b615c578f 100644
--- a/completions/bash/apt
+++ b/completions/bash/apt
@@ -39,7 +39,7 @@ _apt()
"list"
"search"
"show" "showsrc"
- "install" "remove" "purge" "autoremove" "autopurge"
+ "install" "reinstall" "remove" "purge" "autoremove" "autopurge"
"update"
"upgrade" "full-upgrade" "dist-upgrade"
"edit-sources"
@@ -70,7 +70,7 @@ _apt()
# supported options per command
if [[ "$cur" == -* ]]; then
case ${command-} in
- install|remove|purge|upgrade|dist-upgrade|full-upgrade|autoremove)
+ install|reinstall|remove|purge|upgrade|dist-upgrade|full-upgrade|autoremove|autopurge)
COMPREPLY=( $( compgen -W '--show-progress
--fix-broken --purge --verbose-versions --auto-remove
-s --simulate --dry-run
@@ -172,7 +172,7 @@ _apt()
# specific command arguments
if [[ -v command ]]; then
case $command in
- remove|purge|autoremove)
+ remove|purge|autoremove|autopurge)
if [[ -f /etc/debian_version ]]; then
# Debian system
COMPREPLY=( $( \
@@ -188,7 +188,7 @@ _apt()
2> /dev/null ) )
return 0
;;
- install)
+ install|reinstall)
if [[ "$cur" == .* || "$cur" == /* || "$cur" == ~* ]]; then
_filedir "deb"
else