安装
https://github.com/microsoft/terminal/releases
1
| PowerShell -Command "Set-ExecutionPolicy RemoteSigned -scope Process; iwr -useb https://raw.githubusercontent.com/gerardog/gsudo/master/installgsudo.ps1 | iex"
|
sudo管理员权限
settings.json profiles.list
1 2 3 4 5 6 7 8 9
| { "guid": "{41dd7a51-f0e1-4420-a2ec-1a7130b7e950}", "name": "Windows PowerShell Elevated", "commandline": "gsudo.exe powershell.exe", "hidden": false, "colorScheme": "Solarized Dark", "fontFace": "Fira Code", "icon": "C:\\shell\\icon.png" },
|
背景
setting.json profile.default
1 2 3 4 5 6 7 8 9 10
| "defaults": { "startingDirectory": ".", "useAcrylic": true, "acrylicOpacity": 0.6, "colorScheme": "Dracula2", "fontSize": 11, "backgroundImage": "C:\\shell\\bg1.jpg", "backgroundImageOpacity": 0.2, "backgroundImageStrechMode": "fill", },
|
##加入右键菜单
https://raw.githubusercontent.com/microsoft/terminal/main/res/terminal.ico
wt.reg
1 2 3 4 5 6 7 8
| Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt] @="Windows Terminal here" "Icon"="C:\\shell\\terminal.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command] @="C:\\Users\\laziji\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"
|
settings.json profiles.default
1
| "startingDirectory": "."
|