IT评测·应用市场-qidao123.com技术社区
标题:
windows手动添加鼠标右键弹窗快捷方式
[打印本页]
作者:
民工心事
时间:
2025-4-9 21:11
标题:
windows手动添加鼠标右键弹窗快捷方式
此处以添加
Git Bash Here
为例
一.操作步骤
按 Win + R 键打开
运行
对话框,输入 regedit,并按下回车,打开注册表编辑器。
导航到 HKEY_CLASSES_ROOT\Directory\Background\shell。
右键单击 shell,选择
新建
→
项
,并命名为 Git Bash Here。
右键新建的项 Git Bash Here,选择
新建
→
字符串值
,命名为 Icon,然后将其值设置为 Git 安装目次下的 bash.exe 文件的路径(例如:E:\Git\bin\bash.exe)。
在 Git Bash Here 项下,右键单击并选择
新建
→
项
,命名为 command。
在 command 项下,右键单击并选择
修改
,然后将其值设置为 Git 安装目次下的 bash.exe,并加上参数 --login -i(例如:E:\Git\bin\bash.exe --login -i)。
二.注册表文件
也可以写成*.reg文件,直接双击添加到本机注册表,快捷方便
git_gui.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_gui]
@="Git &GUI Here"
"Icon"="E:\\Git\\cmd\\git-gui.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_gui\command]
@=""E:\\Git\\cmd\\git-gui.exe" "--working-dir" "%v.""
复制代码
git_shell.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell]
@="Git Ba&sh Here"
"Icon"="E:\\Git\\git-bash.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell\command]
@=""E:\\Git\\git-bash.exe" "--cd=%v.""
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
欢迎光临 IT评测·应用市场-qidao123.com技术社区 (https://dis.qidao123.com/)
Powered by Discuz! X3.4