mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
manual/9784
This commit is contained in:
parent
60f0b7c0f1
commit
680a2161a4
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)'
|
||||
|
|
Loading…
Reference in a new issue