Skip to content

Commit 0ceca80

Browse files
committed
Add *.apk to unzip and jar filename completions.
1 parent c595779 commit 0ceca80

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ bash-completion (2.x)
3838
* Remove most "-o filenames" options to "complete", turn "-o filenames" on
3939
dynamically when needed instead.
4040
* Add/improve various autotools completions.
41+
* Add *.apk to unzip and jar filename completions.
4142

4243
[ Freddy Vulto ]
4344
* Added _tilde(), fix ~username completion (Alioth: #312613, Debian: #587095)

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ complete -d pushd
7070
# START exclude -- do NOT remove this line
7171
# bzcmp, bzdiff, bz*grep, bzless, bzmore intentionally not here, see Debian: #455510
7272
complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat
73-
complete -f -X '!*.@(zip|[ejw]ar|exe|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub)' unzip zipinfo
73+
complete -f -X '!*.@(zip|[ejw]ar|exe|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub|apk)' unzip zipinfo
7474
complete -f -X '*.Z' compress znew
7575
# zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
7676
complete -f -X '!*.@(Z|[gGd]z|t[ag]z)' gunzip zcat unpigz

completions/jar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _jar()
1818
_filedir
1919
;;
2020
*f)
21-
_filedir '@([ejw]ar|zip)'
21+
_filedir '@([ejw]ar|zip|apk)'
2222
;;
2323
*)
2424
_filedir

0 commit comments

Comments
 (0)