Windows Terminal
从microStore上安装,或者winget安装winget install --id=Microsoft.WindowsTerminal -e
。
启动
- WIN + R,输入wt可以打开
- 添加到右键(或者shift + 右键)
- 创建一个terminal的文件夹(可省略?)
b. 写入注册表。新建一个reg文档,写入以下内容,双击执行。1
2// 我的:mkdir "C:\Users\umino\AppData\Local\terminal"
mkdir "C:\Users\[user name]\AppData\Local\terminal"c. profile.json,做出如下修改,每个终端都加上”startingDirectory”: null。完成1
2
3
4
5
6
7
8Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\[user name]\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"1
2
3
4
5
6
7
8{
"commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"elevate": true,
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"hidden": false,
"name": "Windows PowerShell",
"startingDirectory": null
}
默认打开的是powershell。启动后可以在设置里进行各种更改。
快捷键
- Ctrl + Shift + P:打开命令面板
- tab:自动路径补全