Skip to content

0rtz/mkarch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make-archive plugin

This plugin defines mkarch function that can archive files and directories with the given compression format you pass to it.

Example 1

Archive 'build' directory and 'README.md' file using tar.gz compression:

mkarch tar.gz build README.md

Example 2

Archive using the gzip's slowest compression method but best compression ratio:

mkarch -b tar.gz build README.md

Example 3

Print size and time of archiving 'prj' for each available compression format without outputting any archives

mkarch -s -t ALL prj

Installation

Zinit

zinit light 0xRZ/mkarch

Without plugin manager

source /path/to/mkarch.plugin.zsh

Supported compression formats

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.

Releases

No releases published

Packages

No packages published

Languages