We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9357f35 commit 5b842ffCopy full SHA for 5b842ff
completions/tar
@@ -441,7 +441,7 @@ __tar_cleanup_prev()
441
442
__tar_detect_ext()
443
{
444
- local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst)|cbt)'
+ local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst)|cbt|xbps)'
445
if [[ ${COMP_WORDS[0]} == ?(*/)bsdtar ]]; then
446
# https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
447
tars=${tars/%\)/|pax|cpio|iso|zip|@(j|x)ar|mtree|a|7z|warc}
@@ -460,7 +460,7 @@ __tar_detect_ext()
460
# Should never happen?
461
;;
462
?(-)*[cr]*f)
463
- ext='@(tar|gem|spkg|cbt)'
+ ext='@(tar|gem|spkg|cbt|xpbs)'
464
case ${words[1]} in
465
*a*) ext="$tars" ;;
466
*z*) ext='t?(ar.)gz' ;;
0 commit comments