![OSX 上的 Midnight Commander。打开文件](https://linux22.com/image/1429016/OSX%20%E4%B8%8A%E7%9A%84%20Midnight%20Commander%E3%80%82%E6%89%93%E5%BC%80%E6%96%87%E4%BB%B6.png)
我在 Mac OS X(版本 4.8.13)上使用 Midnight Commander。我遇到了两个问题,如果您能帮助我,我将非常高兴:
/opt/local/libexec/mc/ext.d/doc.sh: 第 134 行:wvHtml:未找到命令
/opt/local/libexec/mc/ext.d/doc.sh:第 135 行:elinks:未找到命令
答案1
通过编辑mc.ext的~/.config/mc的路径解决问题
# Microsoft Word Document regex/i/\.(do[ct]|wri)$ Open=open %f View=%view{ascii} /opt/local/libexec/mc/ext.d/doc.sh view msdoc regex/i/\.(doc|xls)x$ Open=open %f type/^Microsoft\ Word Open=open %f View=%view{ascii} /opt/local/libexec/mc/ext.d/doc.sh view msdoc
和
# Microsoft Excel Worksheet regex/i/\.xl[sw]$ Open=open %f View=%view{ascii} /opt/local/libexec/mc/ext.d/doc.sh view msxls type/^Microsoft\ Excel Open=/opt/local/libexec/mc/ext.d/doc.sh open msxls View=%view{ascii} /opt/local/libexec/mc/ext.d/doc.sh view msxls