打开cornerstone的偏好设置:
prefrences->general->external compare tool->open script foder
在打开的文件夹下新建一个bcompare.sh(名字任意,扩展名为.sh),可以使用命令新建文件 touch xxxx/bcompare.sh
在文件中写入:
#!/bin/bash
original_path="$1"
modified_path="$3"
/usr/local/bin/bcompare "$original_path" "$modified_path"
保存
使用命令 chmod 777 xxxx/bcompare.sh修改文件权限
点击偏好设置中的external compare tool
选择bcompare.sh即可
要比较的时候,右键需要比较的文件,选择compare using bcompare.sh即可
有时会提示/usr/local/bin/bcompare目录不存在,打开beyond compare,安装命令行工具就可以了