This plugin defines mkarch function that can archive files and directories with the given compression format you pass to it.
Archive 'build' directory and 'README.md' file using tar.gz compression:
mkarch tar.gz build README.mdArchive using the gzip's slowest compression method but best compression ratio:
mkarch -b tar.gz build README.mdPrint size and time of archiving 'prj' for each available compression format without outputting any archives
mkarch -s -t ALL prjzinit light 0xRZ/mkarchsource /path/to/mkarch.plugin.zsh| Compression format | Used programs |
|---|---|
| tar | tar |
| tar.bz2 | bzip2 (low priority) OR pbzip2 (mid priority) OR lbzip2 (high priority) |
| tar.gz | gzip OR pigz (takes precedence) |
| tar.xz | xz OR pixz (takes precedence) |
| tar.zst | zstd |
| tar.lz4 | lz4 |
| tar.lrz | lrzip |
| tar.lzo | lzop |
| 7z | 7z |
| rar | rar |
| zip | zip |
| ALL | Special extension to create archive using each available compression format |
Available compression formats determined automatically based on existing system binaries. Plugin also supports tab completion for selection of compression format.