summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-12-16 19:59:41 +0200
committerVille Skyttä <ville.skytta@iki.fi>2010-12-16 19:59:41 +0200
commit0ceca807c50f9cec823999e497f6842c3f16e6e5 (patch)
tree8b21ab1d0bba3f679e21120874b0948f5e71e24f
parentc5957792abbfa51ebebd312b2345dfab7d37b62c (diff)
downloadbash-completion-0ceca807c50f9cec823999e497f6842c3f16e6e5.tar.gz
Add *.apk to unzip and jar filename completions.
-rw-r--r--CHANGES1
-rw-r--r--bash_completion2
-rw-r--r--completions/jar2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 4a27d45f..51489daf 100644
--- a/CHANGES
+++ b/CHANGES
@@ -38,6 +38,7 @@ bash-completion (2.x)
* Remove most "-o filenames" options to "complete", turn "-o filenames" on
dynamically when needed instead.
* Add/improve various autotools completions.
+ * Add *.apk to unzip and jar filename completions.
[ Freddy Vulto ]
* Added _tilde(), fix ~username completion (Alioth: #312613, Debian: #587095)
diff --git a/bash_completion b/bash_completion
index e724f02e..e4787f20 100644
--- a/bash_completion
+++ b/bash_completion
@@ -70,7 +70,7 @@ complete -d pushd
# START exclude -- do NOT remove this line
# bzcmp, bzdiff, bz*grep, bzless, bzmore intentionally not here, see Debian: #455510
complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat
-complete -f -X '!*.@(zip|[ejw]ar|exe|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub)' unzip zipinfo
+complete -f -X '!*.@(zip|[ejw]ar|exe|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub|apk)' unzip zipinfo
complete -f -X '*.Z' compress znew
# zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
complete -f -X '!*.@(Z|[gGd]z|t[ag]z)' gunzip zcat unpigz
diff --git a/completions/jar b/completions/jar
index f60eb3ef..d703019d 100644
--- a/completions/jar
+++ b/completions/jar
@@ -18,7 +18,7 @@ _jar()
_filedir
;;
*f)
- _filedir '@([ejw]ar|zip)'
+ _filedir '@([ejw]ar|zip|apk)'
;;
*)
_filedir