Windows Terminal 配置
Posted wswind
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows Terminal 配置相关的知识,希望对你有一定的参考价值。
注册表添加右键菜单:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellTerminal Here]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellTerminal Herecommand]
@="C:\Users\ws-de\AppData\Local\Microsoft\WindowsApps\wt.exe -d ."
Terminal配置文件,添加git bash
{
...
"profiles":
{
"list":
[
...
{
"guid": "{458a038e-a9ef-11ea-bb37-0242ac130002}",
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : ""%PROGRAMFILES%\git\bin\bash.exe" -i -l",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"historySize" : 9001,
"icon" : "%PROGRAMFILES%\Git\mingw64\share\git\git-for-windows.ico",
"name" : "Git-Bash",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%"
},
...
]
},
...
}
参考:
https://stackoverflow.com/questions/56839307/adding-git-bash-to-the-new-windows-terminal
https://github.com/microsoft/terminal/issues/1060
以上是关于Windows Terminal 配置的主要内容,如果未能解决你的问题,请参考以下文章
Windows10 下Windows Terminal Preview配置Git bash
Windows10 下Windows Terminal Preview配置Git bash