安装
在应用商店直接搜索 Windows Terminal
美化
点击下三角,选择setting设置,复制下面配置替换原有配置
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles": [
{
// Make changes here to the powershell.exe profile
"background": "#000000",
"backgroundImage": "C://1.jpg",
"backgroundImageOpacity": 0.6,
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"colorScheme": "AdventureTime",
"useAcrylic": false,
"closeOnExit": true,
"acrylicOpacity": 0.25,
"cursorColor": "#FFFFFF",
"fontFace": "Delugia Nerd Font",
"hidden": false,
"tabTitle": "Powershell"
},
{
// Make changes here to the cmd.exe profile
"background": "#000000",
"backgroundImage": "C://1.jpg",
"backgroundImageOpacity": 0.5,
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"colorScheme": "AdventureTime",
"useAcrylic": false,
"closeOnExit": true,
"acrylicOpacity": 0.25,
"cursorColor": "#FFFFFF",
"fontFace": "Delugia Nerd Font",
"hidden": false
},
{
"background": "#000000",
"backgroundImage": "C://1.jpg",
"backgroundImageOpacity": 0.6,
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"colorScheme": "AdventureTime",
"useAcrylic": false,
"closeOnExit": true,
"acrylicOpacity": 0.25,
"cursorColor": "#FFFFFF",
"fontFace": "Delugia Nerd Font",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
],
// Add custom color schemes to this array
"schemes": [
{
"name": "3024 Day",
"black": "#090300",
"red": "#db2d20",
"green": "#01a252",
"yellow": "#fded02",
"blue": "#01a0e4",
"purple": "#a16a94",
"cyan": "#b5e4f4",
"white": "#a5a2a2",
"brightBlack": "#5c5855",
"brightRed": "#e8bbd0",
"brightGreen": "#3a3432",
"brightYellow": "#4a4543",
"brightBlue": "#807d7c",
"brightPurple": "#d6d5d4",
"brightCyan": "#cdab53",
"brightWhite": "#f7f7f7",
"background": "#f7f7f7",
"foreground": "#4a4543"
},
{
"name": "AdventureTime",
"black": "#050404",
"red": "#bd0013",
"green": "#4ab118",
"yellow": "#e7741e",
"blue": "#0f4ac6",
"purple": "#665993",
"cyan": "#70a598",
"white": "#f8dcc0",
"brightBlack": "#4e7cbf",
"brightRed": "#fc5f5a",
"brightGreen": "#9eff6e",
"brightYellow": "#efc11a",
"brightBlue": "#1997c6",
"brightPurple": "#9b5953",
"brightCyan": "#c8faf4",
"brightWhite": "#f6f5fb",
"background": "#1f1d45",
"foreground": "#f8dcc0"
}
],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []
}
修改配色
在该GitHub地址有不同的配色方案,将其加入到上面配置的schemes中,修改colorScheme中配色名为新加入配色的name
https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/windowsterminal
power shell美化
- 安装Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- 安装Oh-my-posh
# 下面命令挨个执行
choco install ConEmu
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
- 设置Profile脚本
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
- 打开生成的文件,加入下面代码
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
- 关闭脚本禁用:允许Powershell运行脚本
set-executionpolicy remotesigned
- 安装个性化字体,支持特殊符号
https://github.com/adam7/delugia-code/releases/download/v1910.04.1/Delugia.Nerd.Font.Complete.ttf