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

Tuxera NTFS for Mac 2015

ForkLift 3.0.6 cracked for Mac

How to install Oracle 11g XE in MacOS

VMware Fusion 8 + License Key for MacOSX

10 Web-Based Tools for Exploring the Capabilities of OpenAI and Machine Learning

Switch between Java 8, Java 7 and Java 6 on OS X