summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/bash/apt5
1 files changed, 3 insertions, 2 deletions
diff --git a/completions/bash/apt b/completions/bash/apt
index 0e5d6f808..61101d839 100644
--- a/completions/bash/apt
+++ b/completions/bash/apt
@@ -189,10 +189,11 @@ _apt()
return 0
;;
install)
- COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
- 2> /dev/null ) )
if [[ "$cur" == ./* || "$cur" == /* || "$cur" == ~* ]]; then
_filedir "deb"
+ else
+ COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
+ 2> /dev/null ) )
fi
return 0
;;