美文网首页程序员
Windows 开启Linux子系统后使用右键打开Bash

Windows 开启Linux子系统后使用右键打开Bash

作者: 方圆百里找对手 | 来源:发表于2018-05-07 09:26 被阅读0次

保存以下代码为REG文件,然后合并到注册表即可。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\bash]
@="在此处打开 Bash 窗口"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\bash\command]
@="bash.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\bash]
@="在此处打开 Bash 窗口"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\bash\command]
@="bash.exe"

如果右键直接打开,而不是按住 shift 右键打开的话,删除 "Extended"="" 的行在导入即可。

相关文章

网友评论

    本文标题:Windows 开启Linux子系统后使用右键打开Bash

    本文链接:https://www.haomeiwen.com/subject/vucmrftx.html