about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/User/_tar2
-rw-r--r--Completion/User/_tar_archive2
2 files changed, 3 insertions, 1 deletions
diff --git a/Completion/User/_tar b/Completion/User/_tar
index 0315e193a..ac23e94f3 100644
--- a/Completion/User/_tar
+++ b/Completion/User/_tar
@@ -125,6 +125,8 @@ elif [[ ( "$_tar_cmd" = *[xt]* || -n $del ) && -n "$tf" ]]; then
 
   if [[ $_tar_cmd = *z* ]]; then
     largs=-tzf
+  elif [[ $_tar_cmd = *y* ]]; then
+    largs=-tyf
   elif [[ $_tar_cmd = *Z* ]]; then
     largs=-tZf
   elif [[ $_tar_cmd = *I* ]]; then
diff --git a/Completion/User/_tar_archive b/Completion/User/_tar_archive
index 319c10d83..1cf18d03c 100644
--- a/Completion/User/_tar_archive
+++ b/Completion/User/_tar_archive
@@ -16,7 +16,7 @@ _description files expl 'archive file'
 if [[ "$1" = *[tx]* ]]; then
   if [[ "$1" = *[zZ]* ]]; then
     _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)'
-  elif [[ "$1" = *I* ]]; then
+  elif [[ "$1" = *[Iy]* ]]; then
     _files "$expl[@]" -g '*.(tar|TAR).bz2'
   else
     _files "$expl[@]" -g '*.(tar|TAR)'