下面所有操作,请在命令行执行:
- 进入到 Beyond Compare的安装目录
cd /Applications/Beyond\ Compare.app/Contents/MacOS/
- 移动文件
mv BCompare BCompare.real
- 编辑文件
vim BCompare
- 复制下面的脚本,粘贴进去
chmod +x BCompare
- 至此,大功告成
粘贴的文本
#!/bin/bash
if [ -e /Users/$(whoami)/Library/Application\ Support/Beyond\ Compare/registry.dat ]
then
echo 1;
rm -rf /Users/$(whoami)/Library/Application\ Support/Beyond\ Compare/registry.dat
else
echo 2;
fi
"`dirname "$0"`"/BCompare.real &
网友评论