diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:41:51 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:41:51 +0000 |
commit | 3e2f534ef4b88e50c9ed598df9fa52e3b77361ad (patch) | |
tree | 6e8afbcea2b9dc3c9cf8f4984cd0f60789f59f8a /Completion | |
parent | 373aeadf6c1786888b15260277eb4f5bc903fcbb (diff) | |
download | zsh-3e2f534ef4b88e50c9ed598df9fa52e3b77361ad.tar.gz zsh-3e2f534ef4b88e50c9ed598df9fa52e3b77361ad.tar.xz zsh-3e2f534ef4b88e50c9ed598df9fa52e3b77361ad.zip |
moved to Completion/Unix/Type/_tar_archive
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_tar_archive | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Completion/User/_tar_archive b/Completion/User/_tar_archive deleted file mode 100644 index e5a754e93..000000000 --- a/Completion/User/_tar_archive +++ /dev/null @@ -1,26 +0,0 @@ -#autoload - -# This is used to generate filenames usable as a tar archive. This may -# get one argument, a collection of tar option characters that may be -# used to find out what kind of filename is needed. If no argument is -# given but the parameter `_tar_cmd' is set, that is used. -# If your version of `tar' supports this you may want to complete -# things like `host:file' or `user@host:file' here. - -local expl - -[[ $# -eq 0 && $+_tar_cmd -ne 0 ]] && set "$_tar_cmd" - -_description files expl 'archive file' - -if [[ "$1" = *[tx]* ]]; 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 -else - _files "$expl[@]" -fi |