Skip to content

Commit 5b842ff

Browse files
tornariascop
andcommitted
feat(tar): associate with *.xbps (Void Linux package)
Closes scop#685 Co-authored-by: Ville Skyttä <[email protected]>
1 parent 9357f35 commit 5b842ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/tar

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ __tar_cleanup_prev()
441441

442442
__tar_detect_ext()
443443
{
444-
local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst)|cbt)'
444+
local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst)|cbt|xbps)'
445445
if [[ ${COMP_WORDS[0]} == ?(*/)bsdtar ]]; then
446446
# https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
447447
tars=${tars/%\)/|pax|cpio|iso|zip|@(j|x)ar|mtree|a|7z|warc}
@@ -460,7 +460,7 @@ __tar_detect_ext()
460460
# Should never happen?
461461
;;
462462
?(-)*[cr]*f)
463-
ext='@(tar|gem|spkg|cbt)'
463+
ext='@(tar|gem|spkg|cbt|xpbs)'
464464
case ${words[1]} in
465465
*a*) ext="$tars" ;;
466466
*z*) ext='t?(ar.)gz' ;;

0 commit comments

Comments
 (0)