summaryrefslogtreecommitdiff
path: root/completions/bash/apt
diff options
context:
space:
mode:
Diffstat (limited to 'completions/bash/apt')
-rw-r--r--completions/bash/apt6
1 files changed, 4 insertions, 2 deletions
diff --git a/completions/bash/apt b/completions/bash/apt
index 451004982..07bebc9a3 100644
--- a/completions/bash/apt
+++ b/completions/bash/apt
@@ -158,7 +158,7 @@ _apt()
' -- "$cur" ) )
return 0
;;
- clean|autocleean)
+ clean|autoclean)
COMPREPLY=( $( compgen -W '
-s --simulate --dry-run
' -- "$cur" ) )
@@ -189,7 +189,9 @@ _apt()
install)
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
2> /dev/null ) )
- _filedir "*.deb"
+ if [[ "$cur" == ./* || "$cur" == /* ]]; then
+ _filedir "deb"
+ fi
return 0
;;
source|build-dep|showsrc|policy)