mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
| .. | ||
| _universalarchive | ||
| README.md | ||
| universalarchive.plugin.zsh | ||
universalarchive plugin
Lets you compress files by a catchy command ua <format> <files> into various compression formats;
namely, <format> could be zip, xz, ..
For example, the command
ua xz *.html
will compress all html files in directory folder into folder.xz.
In more detail:
This plug-in defines a function called universalarchive that compresses the files you pass it; it supports a wide variety of compression format.
This way you don't have to know what specific command compresses a file, you
just do universalarchive <archive type> <filename> and the function takes
care of the rest.
To use it, add universalarchive to the plugins array in your zshrc file:
plugins=(... universalarchive)
Supported file extensions
| Extension | Description |
|---|---|
7z |
7zip file |
Z |
Z archive (LZW) |
bz2 |
Bzip2 file |
gz |
Gzip file |
lzma |
LZMA archive |
lzo |
LZO archive |
rar |
WinRAR archive |
tar |
Tarball |
tar.bz2 |
Tarball with bzip2 compression |
tar.gz |
Tarball with gzip compression |
tar.xz |
Tarball with lzma2 compression |
tar.zma |
Tarball with lzma compression |
tbz |
Tarball with bzip compression |
tbz2 |
Tarball with bzip2 compression |
tgz |
Tarball with gzip compression |
tlz |
Tarball with lzma compression |
txz |
Tarball with lzma2 compression |
xz |
LZMA2 archive |
zip |
Zip archive |
See list of archive formats for more information regarding archive formats.