From: Oleg Broytman Date: Sat, 17 Jan 2015 18:02:59 +0000 (+0300) Subject: mc.menu: pack not-packed files X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d41780cbef2951c36c422db2524eb864e5504644;p=dotfiles.git mc.menu: pack not-packed files --- diff --git a/.mc/menu b/.mc/menu index d163a2d..5d3845e 100644 --- a/.mc/menu +++ b/.mc/menu @@ -247,11 +247,35 @@ y Compress the current subdirectory to zip with recoded filenames cd .. && zip.py "$zip".zip "$Pwd" && echo ../"$zip".zip created. -+ ! f \.(\.|zip|ZIP)$ ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z bzip2 the file/directory + exec bzip2 -9 %f.bz2 %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z gzip the file/directory + exec gzip -9 %f.gz %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z lzip the file/directory + exec lzip -9 %f.lz %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z lzma the file/directory + exec lzma -9 %f.lzma %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z 7z the file/directory + exec 7z -9 %f.7z %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ +z xz the file/directory + exec xz -9 %f.xz %f + ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ z zip the file/directory exec zip -r9 %f.zip %f -+ ! f \.(\.|zip|ZIP)$ ++ ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ y zip the file/directory with recoded filename(s) exec zip.py %f.zip %f