1,windows Terminal是微软推出的新的命令行工具
2,添加到右键菜单
新建文本文件,输入以下代码,保存为reg文件,然后运行
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\你的用户名\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"
3,打开windows terminal配置文件,修改几个地方
"startingDirectory": "." //修改这个可以让windwos terminal从当前右键文件夹打开
"useAcrylic":true //打开透明度
"acrylicOpacity":0.5 //透明度设置
"profiles": [
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// "name": "Windows PowerShell",
"name":"Yangliwei Terminal",
"closeOnExit": true,
"commandline": "powershell.exe",
"hidden": false,
"startingDirectory": ".",
"useAcrylic":true,
"acrylicOpacity":0.5
},