以下所有操作,请在命令行执行:
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 &
您可以选择一种方式赞助本站
支付宝扫一扫
微信扫一扫