Date: Tue, 5 Jul 2005 20:50:55 +0200 (CEST) From: Ulrich Spoerlein <q@galgenberg.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: sergei@FreeBSD.org Subject: ports/83023: [PATCH] shells/zsh: Teach zsh completion about bsdtar formats Message-ID: <200507051850.j65IotEB019707@roadrunner.q.local> Resent-Message-ID: <200507051900.j65J0aYA006626@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83023 >Category: ports >Synopsis: [PATCH] shells/zsh: Teach zsh completion about bsdtar formats >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 05 19:00:36 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ulrich Spoerlein >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD roadrunner 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Sun Jul 3 14:07:41 CEST >Description: Zsh's completion doesn't know about bsdtar's achievments. It won't complete to foo.tar.gz if you just enter 'tar xf foo^D'. Please have a look at ports/82066 too. Thanks. Added file(s): - files/patch-tar_archive Port maintainer (sergei@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- zsh-4.2.5.patch begins here --- Index: files/patch-tar_archive =================================================================== RCS file: files/patch-tar_archive diff -N files/patch-tar_archive --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-tar_archive 5 Jul 2005 18:48:00 -0000 @@ -0,0 +1,18 @@ +--- Completion/Unix/Type/_tar_archive Mon Jul 4 17:16:10 2005 ++++ Completion/Unix/Type/_tar_archive Tue Jul 5 20:44:52 2005 +@@ -14,13 +14,8 @@ + _description files expl 'archive file' + + if [[ "$1" = *[urtx]* ]]; then +- if [[ "$1" = *[zZ]* ]]; then +- _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)' +- elif [[ "$1" = *[Ijy]* ]]; then +- _files "$expl[@]" -g '*.(tar|TAR).bz2(-.)' +- else +- _files "$expl[@]" -g '*.(tar|TAR)(-.)' +- fi ++# bsdtar/libarchive handles these automagically ++ _files "$expl[@]" -g '*.((tar|TAR|iso|ISO|cpio).(|(gz|GZ|Z|bz2))|tgz|tbz|jar|zip)(-.)' + else + _files "$expl[@]" + fi --- zsh-4.2.5.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507051850.j65IotEB019707>