[软件分享] UOS安装beyond compare并手工在右键增加相关选项
应用软件952次浏览 ·1个回复
电梯直达到第
Sahara
uos^1
发表于2022-08-10 08:31
楼主

效果:

在应用商店安装beyond compare,自行激活

一、创建文件:/root/.bcompare/.bcomparelater

#!/bin/sh

comparefile=$(echo $@ | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ",$1 }' | sed -e s#\"\"##)

echo $comparefile > /root/.bcompare/.bcomparetxt

创建软连接:

ln -s /root/.bcompare/.bcomparelater /usr/local/bin/bcomparelater

 

二、创建文件:/root/.bcompare/.bcomparewith

#!/bin/sh

arg2=$(cat /root/.bcompare/.bcomparetxt)

arg1=$(echo $@ | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ",$1 }' | sed -e s#\"\"##)

bcompare $arg2 $arg1

创建软连接:

ln -s /root/.bcompare/.bcomparewith /usr/local/bin/bcomparewith

 

三、创建文件:/root/.bcompare/.bcomparediff

#!/bin/sh

#选中两个文件才比较

if [ $# -eq 2 ]

then bcompare $1 $2

fi

创建软连接:

ln -s /root/.bcompare/.bcomparediff /usr/local/bin/bcomparediff

 

四、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/open-by-bcomparelater.desktop :

[Desktop Entry]

Name=晚点比较

Type=Application

X-DFM-MenuTypes=SingleFile;SingleDir

Exec=bcomparelater %u

Icon=bcompare

 

五、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/open-by-bcomparewith.desktop :

[Desktop Entry]

Name=现在比较

Type=Application

X-DFM-MenuTypes=SingleFile;SingleDir

Exec=bcomparewith %u

Icon=bcompare

 

六、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/pen-by-bcomparediff.desktop :

[Desktop Entry]

Name=比较差异

Type=Application

X-DFM-MenuTypes=MultiFileDirs

Exec=bcomparediff %U

Icon=bcompare

回复收藏只看作者
所有回复
拾玖
uos^1
发表于2022-08-10 15:36
沙发

商店没有啊,win下我一直用这个同步资料到U盘,现在换了UOS,没有找到同步的,我的资料都插USB用

回复只看作者

光荣榜

  • 周榜
  • 月榜
  • 总榜