omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Suggestion: use ouch for implementing compress/decompress utils

Open fcoelhomrc opened this issue 1 year ago • 3 comments

What do you need?

Currently, Omarchy has custom utility scripts compress / decompress, that are designed to handle tar.gz archives.

There is a neat tool called ouch, which is dedicated to handling all sorts of compression and decompression operations (not limited to tar.gz)

It should be straightforward to dramatically extend Omarchy's compress and decompress utilities by swapping to ouch as their backend.

Here is a snapshot from part of their docs for illustration:

Image

fcoelhomrc avatar Oct 22 '25 21:10 fcoelhomrc

Oh! That's really cool.

abenz1267 avatar Oct 23 '25 03:10 abenz1267

+1 . The shell scripts don't work if one switches shell to zsh. As any normal person should 😛 Edit: ouch doesn't handle password during decompression. 7zip was able to. 7z e file.rar -odestDir

gyaaniguy avatar Oct 29 '25 14:10 gyaaniguy

for the last ~10 years i've been happy with this tool https://github.com/dtrx-py/dtrx

it's similar, but it assures that exracting the archive doesn't just put a bunch of files in your current directory: it always creates a directory named after the zip file, and if the zip file already contains a single directory at the root level it assures you don't end up with a double directory

Dieterbe avatar Dec 13 '25 17:12 Dieterbe