From: Oleg Broytman Date: Sat, 17 Jan 2015 18:42:50 +0000 (+0300) Subject: mc.menu: only archive files, not directories X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3ce07f707dc646831b5494f09e3e986985cfb641;p=dotfiles.git mc.menu: only archive files, not directories --- diff --git a/.mc/menu b/.mc/menu index 95cf0cd..660f475 100644 --- a/.mc/menu +++ b/.mc/menu @@ -248,19 +248,19 @@ y Compress the current subdirectory to zip with recoded filenames echo ../"$zip".zip created. + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z bzip2 the file/directory +z bzip2 the file 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 +z gzip the file exec gzip -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z lzip the file/directory +z lzip the file exec lzip -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z lzma the file/directory +z lzma the file exec lzma -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ @@ -268,7 +268,7 @@ z 7z the file/directory exec 7z -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z xz the file/directory +z xz the file exec xz -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$