summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorChristopher Bock <christopher@bocki.com>2025-08-16 18:34:25 +0200
committerChristopher Bock <christopher@bocki.com>2025-08-16 18:34:25 +0200
commit704742352e53a44a38dfe09e4be4c6494cfa7fdc (patch)
tree319a627c92efa2742bd95479455ee1722d1f7758 /completions/bash
parent8d9ea25bc7e908f25baee2448e80f6bbd820173f (diff)
completion: apt why/why-not
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/apt6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/bash/apt b/completions/bash/apt
index 9881d5c29..c249f97b1 100644
--- a/completions/bash/apt
+++ b/completions/bash/apt
@@ -49,7 +49,7 @@ _apt()
"download" "changelog"
"moo"
"modernize-sources"
- "depends" "rdepends"
+ "depends" "rdepends" "why" "why-not"
"policy")
local command i
@@ -176,7 +176,7 @@ _apt()
# specific command arguments
if [[ -v command ]]; then
case $command in
- remove|purge|autoremove|autopurge)
+ remove|purge|autoremove|autopurge|why)
if [[ -f /etc/debian_version ]]; then
# Debian system
COMPREPLY=( $( \
@@ -187,7 +187,7 @@ _apt()
fi
return 0
;;
- show|list|download|changelog|depends|rdepends)
+ show|list|download|changelog|depends|rdepends|why-not)
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
2> /dev/null ) )
return 0