about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-17 20:23:11 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-17 20:23:11 +0000
commit680a2161a4cd2b26373408a3ca5f935ab17cc43d (patch)
treef573edd353aaa72fb43ef1d97a1b2f5ec4d3dce3
parent60f0b7c0f13d2213d08af2b44d49bac55ce83258 (diff)
downloadzsh-680a2161a4cd2b26373408a3ca5f935ab17cc43d.tar.gz
zsh-680a2161a4cd2b26373408a3ca5f935ab17cc43d.tar.xz
zsh-680a2161a4cd2b26373408a3ca5f935ab17cc43d.zip
manual/9784
-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)'