Windows Registry Editor Version 5.00 ; Open files[HKEY_CLASSES_ROOT\*\shell\gitbash]@="gitbash"Icon"="D:\\apps\\cmder\\vendor\\git-for-windows\\git-bash.exe,0" [HKEY_CLASSES_ROOT\*\shell\gitbash\command]@="\"D:\\apps\\cm…
开门见山 git bash 是 Windows 用户安装 git 时默认安装的命令行工具,不仅界面漂亮功能也不错,大多数情况下可以替代 Windows 原生的 cmd 命令行. 然而,git bash 命令行不是万金油,并不能完全替代 cmd ,详情请参考 mintty 官网的相关说明. mintty is not a full replacement for the Windows Console window git bash 命令行默认使用 mintty 作为终端模拟器,而 mintty…
由于sourcetree自动安装的git,导致右键没有git bush here,那么我们就自己添加一下. 运行regedit.exe进入注册表,在HKEY_CLASSES_ROOT\Directory\Background\shell中进行设置.1.新建项Git Bush Here,此时你可以看到在桌面右键会出现“Git Bush Here”菜单.2.添加Git Bush Icon,在第一步的新建项Git Bush Here下,新建字符串值Icon,然后编辑该值为“C:\Program Fil…
需求: 在界面的右键事件中添加一个打开开发者选项的菜单(Show Dev Tools) 所以我们可以看到的是在界面上右键,会有默认的一些菜单项(前进,后退,打印,查看源码),而这些功能并不一定是我们需要的,所以我们首先要做的就是去除这些选项,参考:java cef3 如何禁止右键菜单项 同理,我们只需要在CefContextMenuHandler接口的实现类中去定制我们的菜单项即可,代码如下: public class ContextMenuHandler implements CefConte…