my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.7 KiB

3 years ago
  1. # universalarchive plugin
  2. Lets you compress files by a command `ua <format> <files>`, supporting various
  3. compression formats (e.g. 7z, tar.gz, lzma, ...).
  4. To enable it, add `universalarchive` to the plugins array in your zshrc file:
  5. ```zsh
  6. plugins=(... universalarchive)
  7. ```
  8. ## Usage
  9. Run `ua <format> <files>` to compress `<files>` into an archive file using `<format>`.
  10. For example:
  11. ```sh
  12. ua xz *.html
  13. ```
  14. this command will compress all `.html` files in directory `folder` into `folder.xz`.
  15. This plugin saves you from having to remember which command line arguments compress a file.
  16. ## Supported compression formats
  17. | Extension | Description |
  18. |:-----------------|:-------------------------------|
  19. | `7z` | 7zip file |
  20. | `bz2` | Bzip2 file |
  21. | `gz` | Gzip file |
  22. | `lzma` | LZMA archive |
  23. | `lzo` | LZO archive |
  24. | `rar` | WinRAR archive |
  25. | `tar` | Tarball |
  26. | `tbz`/`tar.bz2` | Tarball with bzip2 compression |
  27. | `tgz`/`tar.gz` | Tarball with gzip compression |
  28. | `tlz`/`tar.lzma` | Tarball with lzma compression |
  29. | `txz`/`tar.xz` | Tarball with lzma2 compression |
  30. | `tZ`/`tar.Z` | Tarball with LZW compression |
  31. | `xz` | LZMA2 archive |
  32. | `Z` | Z archive (LZW) |
  33. | `zip` | Zip archive |
  34. | `zst` | Zstd archive |
  35. See [list of archive formats](https://en.wikipedia.org/wiki/List_of_archive_formats) for more information regarding the archive formats.