您的位置:首页 > 运维架构 > Shell

将git Bash Here改为Shift+右键显示

2020-07-14 05:19 555 查看

我的博客:https://520526.xyz/

一直看不习惯右键菜单多出一些按钮,所以对比PowerShell按住Shift右键才显示按钮的方式,更改了注册表,达到了这种效果。
文末有自动修改的方法。

打开注册表编辑器

无需多说,

WINkey+R
输入
regedit

开始修改

分别定位

HKEY_CLASSES_ROOT\Directory\shell\
HKEY_CLASSES_ROOT\Directory\Background\shell\
,对比
PowerShell\
可以发现其比
git_shell\
git_gui\
多出了一个名为
Extended
的字符串值。

我们尝试在
HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell\
下新建
Extended
字符串值,发现效果可行。

将另外三个需要修改的地方,效果如下。

自动修改

将以下代码复制到一个文本文档中,更改后缀为

.reg
,并双击打开即可

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\background\shell\git_gui]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\git_shell]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
"Extended"=""
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: