Skip to content

Commit 8fa4d3c

Browse files
authored
Merge pull request #1404 from eagleoflqj/hap
bsdtar and unzip should support .apk, .ipa and .hap
2 parents c50eab9 + bc10b93 commit 8fa4d3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,7 @@ _comp__init_install_xspec()
31573157
}
31583158
# bzcmp, bzdiff, bz*grep, bzless, bzmore intentionally not here, see Debian: #455510
31593159
_comp__init_install_xspec '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat lbunzip2 lbzcat
3160-
_comp__init_install_xspec '!*.@(zip|[aegjkswx]ar|exe|pk3|wsz|zargo|xpi|s[tx][cdiw]|sx[gm]|o[dt][tspgfc]|od[bm]|oxt|?(o)xps|epub|cbz|apk|apk[ms]|aab|xapk|ipa|do[ct][xm]|p[op]t[mx]|xl[st][xm]|pyz|vsix|whl|[Ff][Cc][Ss]td)' unzip zipinfo
3160+
_comp__init_install_xspec '!*.@(zip|[aegjkswx]ar|exe|pk3|wsz|zargo|xpi|s[tx][cdiw]|sx[gm]|o[dt][tspgfc]|od[bm]|oxt|?(o)xps|epub|cbz|apk|apk[ms]|aab|xapk|ipa|hap|do[ct][xm]|p[op]t[mx]|xl[st][xm]|pyz|vsix|whl|[Ff][Cc][Ss]td)' unzip zipinfo
31613161
_comp__init_install_xspec '*.Z' compress znew
31623162
# zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
31633163
_comp__init_install_xspec '!*.@(Z|[gGd]z|t[ag]z)' gunzip zcat

completions/tar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ _comp_cmd_tar__detect_ext()
513513
local tars='@(@(tar|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst)|cbt|gem|xbps)'
514514
if _comp_cmd_tar__is_bsdtar; then
515515
# https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
516-
tars=${tars/%\)/|pax|cpio|iso|zip|@(j|x)ar|mtree|a|7z|warc}
516+
tars=${tars/%\)/|pax|cpio|iso|zip|apk|ipa|hap|@(j|x)ar|mtree|a|7z|warc}
517517
if _comp_cmd_tar__extract_like_mode; then
518518
# read only
519519
tars+="|l@(ha|zh)|rar|cab)"

0 commit comments

Comments
 (0)