Skip to content

8. Make it yours with settings

Everything squeeze and unsqueeze do without being told comes from one file, ~/.qwiksqueezeconfig. It explains itself, and you can change it in any text editor or with a command.

See the settings

% squeeze --fix-config
squeeze: ~/.qwiksqueezeconfig was made, with every setting at its starting value.
% squeeze --settings | head -20
Settings in ~/.qwiksqueezeconfig:
===============================================
compression-method-fastest             aar-lz4
compression-method-balanced            7z-1
compression-method-smallest            7z-9
compression-method-portable-fastest    7z-1
compression-method-portable-balanced   7z-1
compression-method-portable-smallest   7z-9
portable-archives                      off
zip-password-7z                        off
least-password-length                  20
for-windows                            on
replace-windows-characters             off
leave-out-mac-files                    on
dont-recompress                        on
zip-options                            
leave-out-macosx                       on
least-free-space                       2GB
largest-growth                         10000
comments-on-unpack                     both

--fix-config makes the file with every setting at its starting value; after that it puts back any setting that's missing, never changing yours. --settings shows every value in use.

Change one

% squeeze --set compression-method-balanced=aar-lzfse
squeeze: compression-method-balanced is now aar-lzfse.
% squeeze weather Documents/Spreadsheets
squeeze: balanced chose an Apple Archive with LZFSE: creating weather.aar
squeeze: weather.aar was created: 1 file, 24 MB squeezed to 3.4 MB, saving 86%.

From now on, balanced makes an Apple Archive with LZFSE. To put it back, squeeze --reset compression-method-balanced.

For one session: SQUEEZEOPT

Options in SQUEEZEOPT are added to every squeeze command, before your own, so your command line still wins:

% SQUEEZEOPT='-Z smallest' squeeze notes2 Documents/Notes
squeeze: -Z smallest chose a 7z archive with LZMA2 at level 9: creating notes2.7z
squeeze: notes2.7z was created: 60 files, 22.4 MB squeezed to 5.8 MB, saving 74%.

Put export SQUEEZEOPT='-Z smallest' in ~/.zshrc to have it in every Terminal window. UNSQUEEZEOPT does the same for unsqueeze.

Which value wins

First to last: the command line, then SQUEEZEOPT, then the settings file. squeeze --explain with a command's options shows every value it would use and where each came from.

Every setting is in the settings file reference.