summaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorJörn-Thorben Hinz <11910-jth@users.noreply.salsa.debian.org>2022-01-26 21:29:04 +0100
committerJörn-Thorben Hinz <11910-jth@users.noreply.salsa.debian.org>2022-01-26 21:29:04 +0100
commit0251ed0b4f01b2813c31af9e5cbfe57dad61340d (patch)
treedb2730b14ad5b77d4b9e11e6ceb4fa6782b4ecb4 /completions
parentca5557936211bd670a203e6e1f8d75fda2d61819 (diff)
Start bash-completing .deb file paths after the first . passed in an
argument to `apt install` This will start by suggesting ./ and ../ which are both fine path segments for `apt install` to handle later.
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/apt2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/bash/apt b/completions/bash/apt
index 61101d839..90b4ef20c 100644
--- a/completions/bash/apt
+++ b/completions/bash/apt
@@ -189,7 +189,7 @@ _apt()
return 0
;;
install)
- if [[ "$cur" == ./* || "$cur" == /* || "$cur" == ~* ]]; then
+ if [[ "$cur" == .* || "$cur" == /* || "$cur" == ~* ]]; then
_filedir "deb"
else
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \