]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
mc.menu: fix 7zr command line
[dotfiles.git] / .mc / menu
index 660f475c45ca7dfa3f47eb5cd67062464dd1c00e..7f502fca48c203fe8f65852a99b9f5da27e84143 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -265,7 +265,7 @@ z  lzma the file
 
 + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$
 z  7z the file/directory
-   exec 7z -9 %f
+   exec 7zr a %f.7z %f
 
 + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$
 z  xz the file
@@ -330,7 +330,7 @@ x  Extract a compressed file
      *.gz)   P="gzip -d";;
      *.lz)   P="lzip -d";;
      *.lzma) P="lzma -d";;
-     *.7z)   P="7z -d";;
+     *.7z)   P="7zr x";;
      *.xz)   P="xz -d";;
      *.tar)  P="tar xvpf";;
      *.zip|*.ZIP) P="uzip";;
@@ -341,12 +341,12 @@ x  Extract a compressed file
 + F \.(bz2|gz|lz|lzma|7z|xz|tar|zip|ZIP|rar|RAR)$ & T r
 x  Extract another compressed file
    case %F in
-     *.bz2)  P="bzip2 -cd";;
-     *.gz)   P="gzip -cd";;
-     *.lz)   P="lzip -cd";;
-     *.lzma) P="lzma -cd";;
-     *.7z)   P="7z -cd";;
-     *.xz)   P="xz -cd";;
+     *.bz2)  P="bzip2 -d";;
+     *.gz)   P="gzip -d";;
+     *.lz)   P="lzip -d";;
+     *.lzma) P="lzma -d";;
+     *.7z)   P="7zr x";;
+     *.xz)   P="xz -d";;
      *.tar)  P="tar xvpf";;
      *.zip|*.ZIP) P="uzip";;
      *.rar|*.RAR) P="rar x -y";;
@@ -370,7 +370,7 @@ x  Extract the contents of a compressed tar file
          PRG="lzma -dc"
       ;;
       *.tar.7z)
-         PRG="7za e -so"
+         PRG="7zr e -so"
       ;;
       *.tar.xz)
          PRG="xz -dc"
@@ -398,7 +398,7 @@ X  Extract the contents of an other compressed tar file
          PRG="lzma -dc"
       ;;
       *.tar.7z)
-         PRG="7za e -so"
+         PRG="7zr e -so"
       ;;
       *.tar.xz)
          PRG="xz -dc"