How to open the *.war, *.jar files with Midnight Commander (mc)

Open the *.war, *.jar files with Midnight Commander (mc)

Description of problem: .war file fails to open in mc with error 

Version: mc 4.8.26

Steps to fix this:

- Step 1: Open mc, open "Edit extension file" in "Command" menu

- Step 2: Then add the following snippet somewhere in the file (add below config under "### Archives ####" section):


# jar
shell/i/.jar
        Open=%cd %p/uzip://
        View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip

# war
shell/i/.war
    Open=%cd %p/uzip://
    View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip


- Step 3: Open mc and try to open the .war file

Comments

Popular posts from this blog

CleanMyMac 3.9 cracked for Mac

VMware Fusion 8 + License Key for MacOSX

Get/Set MTU Size from the Command Line of Mac OS X

How to install Oracle 11g XE in MacOS

DaisyDisk 4.2 Cracked for Mac

coconutBattery 3 - Free