添加Windows Terminal到右键菜单

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="Terminal"
"Icon"="C:\\Windows\\System32\\terminal.png"

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
@="C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="Terminal"
"Icon"="C:\\Windows\\System32\\terminal.png"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="Terminal"
"Icon"="C:\\Windows\\System32\\terminal.png"

[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="Terminal"
"Icon"="C:\\Windows\\System32\\terminal.png"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

注意事项
虽然能打开终端,但是路径并不是当前路径,需要在修改windows terminal配置:
打开 Windows Terminal --> 设置,给 profiles.defaults 加上:"startingDirectory": null
注意:wt.exe 路径

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。