prezto/modules/archive
2012-05-25 18:02:57 +02:00
..
functions Check for non-empty files, not just existance 2012-05-05 18:08:25 -04:00
README.md [Fix #99] Add documentation for archive 2012-05-25 18:02:57 +02:00

Archive

Provides functions to inspect and extract various archive files.

Functions

ls-archive

ls-archive inspects one or more archive files:

ls-archive [-v] [file ...]

Options:

  • -v, --verbose: List archives verbosely

extract

extract extracts the contents of one or more archive files into the current directory:

extract [-r] [file ...]

Options:

  • -r, --remove: Remove the archive file after extraction

Supported archive formats

Both functions support the following archive formats, if the corresponding utilities are available:

  • .tar.gz, .tgz (needs tar and gunzip)
  • .tar.gz2, .tbz (needs tar and bunzip2)
  • .tar.zma, .tlz (needs tar and unlzma)
  • .tar (needs tar)
  • .gz (needs gunzip)
  • .bz2 (needs bunzip2)
  • .xz (needs unxz)
  • .lzma (needs unlzma`)
  • .Z (needs uncompress)
  • .zip (needs unzip)
  • .rar (needs unrar)
  • .7z (needs 7za)
  • .deb (needs ar, tar and gunzip)

Authors

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