zhuoranwindows右键执行WSL2 Ubuntu Codex 中发帖

windows下 codex MCP总有问题,就用了wsl安装一个,然后发现启动不老方便的,打开终端,打开 Ubuntu,找到目录,执行codex。路径太长了, 

让AI写了两种方式进入
1. 鼠标右键启动
windows下新建一个注册表文件,wsl_here.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wsl_ubuntu]
@="在此处打开 Ubuntu"
"Icon"="C:\\Windows\\System32\\wsl.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wsl_ubuntu\command]
@="wsl.exe -d Ubuntu --cd \"%V\""

[HKEY_...