cmd / msys2 添加到右菜单

1. 打开注册表

转到 计算机HKEY_CLASSES_ROOTDirectoryBackgroundshell

2. 新建项 Cmd Here (名称随意)

在 Cmd Here 里新建

 

icon是 图标。

3. 在 Cmd Here 下, 新建项 command (必须为command)

将 command 的默认值改为 "C:WindowsSystem32cmd.exe" "--working-dir" "%v."

msys2 同理, 不过 msys2 的 command 参数为:

C:msys64msys2_shell.cmd -mingw64 -here

原文地址:https://www.cnblogs.com/bahl/p/12681583.html