帮助文档:
https://docs.microsoft.com/en-us/windows/terminal/
注册表添加右键菜单:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellTerminal Here]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellTerminal Herecommand]
@="C:\Users\ws\AppData\Local\Microsoft\WindowsApps\wt.exe -d ."
参考:
https://github.com/microsoft/terminal/issues/1060
Terminal配置文件,添加git bash
{
...
"profiles":
{
"list":
[
...
{
"guid": "{52d45a95-f1c7-4d89-8b0f-d7037783775f}",
"commandline" : ""%PROGRAMFILES%\git\bin\bash.exe" --login -i",
"icon" : "%PROGRAMFILES%\Git\mingw64\share\git\git-for-windows.ico",
"colorScheme": "Campbell",
"fontFace" : "Consolas",
"fontSize" : 12,
"name" : "Git Bash",
"startingDirectory" : "%USERPROFILE%",
"useAcrylic": true,
"acrylicOpacity":0.8,
"closeOnExit": "always"
},
...
]
},
...
}
参考:
https://stackoverflow.com/questions/56839307/adding-git-bash-to-the-new-windows-terminal
wsl起始目录:
"startingDirectory" : "//wsl$/Debian/root/"
Powerline配置:
https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
禁止Azure控制台自动生成
"disabledProfileSources": ["Windows.Terminal.Azure"],