diff options
author | Jörn-Thorben Hinz <11910-jth@users.noreply.salsa.debian.org> | 2022-01-26 21:29:04 +0100 |
---|---|---|
committer | Jörn-Thorben Hinz <11910-jth@users.noreply.salsa.debian.org> | 2022-01-26 21:29:04 +0100 |
commit | 0251ed0b4f01b2813c31af9e5cbfe57dad61340d (patch) | |
tree | db2730b14ad5b77d4b9e11e6ceb4fa6782b4ecb4 | |
parent | ca5557936211bd670a203e6e1f8d75fda2d61819 (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.
-rw-r--r-- | completions/bash/apt | 2 |
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" \ |