添加右键菜单(以git为例)

1、打开注册表编辑器

打开系统注册表,使用组合键"Win + R "输入"regedit"。

依次展开"HKEY_CLASSES_ROOT\Directory\Background\shell"。

2、新建右键菜单项

在**Background** 下找到"shell "如果没有则新建项shell,接着在"shell "下右键-新建项名字为"open in Git "并且修改默认值为"Git Bash Here"这个就是右键菜单显示的名字。

接着在"open in Git "下新建"字符串值 ",名字为"Icon"值为git安装目录下mingw64\share\git\的ico图标。

这一步其实就是设置右键菜单显示的小图标。

3、建立command项

接着在"open in Git "新建项"command ",并且默认值数值数据里修改git安装目录的"git-bash.exe"路径。

保存后,就可以看到右键菜单了。

添加cmd、Powershell菜单与此类似,详细参考:鼠标右键添加自定义Cmd与Powershell【最全 最详细 含图标Icon】_鼠标右键powershell-CSDN博客

相关推荐
高调的涵涵1 天前
删了1.2GB,.git仍是1.2GB
git
程序员沉梦听雨1 天前
【Git】git-submodule子模块管理
git
全栈陈序员2 天前
Git】从入门到精通(八)—— git log:查看提交历史
大数据·git·elasticsearch
7177772 天前
Git自建用什么工具比较好:Gitea、Forgejo、GitLab CE与Gitee的选型对比
git·gitlab·gitea
lsc_blog3 天前
年底还在招的岗位,先确认缺口和到岗要求
git·缓存·ci/cd·职场和发展·github
全栈陈序员3 天前
【Git】从入门到精通(十一)—— git reset 三种模式详解
git·elasticsearch
全栈陈序员3 天前
【Git】从入门到精通(十)—— 撤销与恢复:git checkout与git restore
运维·网络·数据库·git
全栈陈序员3 天前
【Git】从入门到精通(五)—— git add:将文件加入暂存区
大数据·git·elasticsearch
全栈陈序员4 天前
【Git】从入门到精通(七)—— git status:查看仓库状态
大数据·git·elasticsearch
莫晓燚4 天前
Ansible 13 个常用模块---企业实战
git·github