1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-20 09:41:12 +00:00
prezto/modules/archive
2017-07-06 16:13:36 -07:00
..
functions Add comments into each of the function files to make them easier to find 2017-07-06 16:13:36 -07:00
README.md archive: add archive function 2017-04-17 22:44:47 -07:00

Archive

Provides functions to create, list, and extract archives.

Functions

  • archive creates an archive based on the provided archive name.
  • lsarchive lists the contents of one or more archives.
  • unarchive extracts the contents of one or more archives.

Supported Formats

The following archive formats are supported when the required utilities are installed:

  • .tar.gz, .tgz require tar (optionally pigz).
  • .tar.bz2, .tbz require tar (optionally pbzip2).
  • .tar.xz, .txz require tar with xz support.
  • .tar.zma, .tlz require tar with lzma support.
  • .tar requires tar.
  • .gz requires gunzip.
  • .bz2 requires bunzip2.
  • .xz requires unxz.
  • .lzma requires unlzma.
  • .Z requires uncompress.
  • .zip, .jar requires unzip.
  • .rar requires unrar or rar.
  • .7z requires 7za.
  • .deb requires ar, tar.

Additionally, if pigz' and/or pbzip2are installed,archivewill use them over their traditional counterparts,gzipandbzip2` respectively, to take full advantage of all available CPU cores for compression.

Authors

The authors of this module should be contacted via the issue tracker.