0%

powershell 美化

参考

资源

安装

安装及配置终端模拟器 microsoft/terminal
请参考 Windows-Terminal

安装 oh-my-posh 和 posh-git

1
2
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

安装 colortool

1
scoop install colortool

clone iTerm2-Color-Schemes

1
2
cd ~
git clone --depth 1 https://github.com/mbadolato/iTerm2-Color-Schemes.git

美化

1
code $PROFILE

Microsoft.PowerShell_profile.ps1

1
2
3
4
5
6
Import-Module posh-git
Import-Module oh-my-posh
Set-Culture en-US
Set-Theme Sorin
clear
# Paradox

修改主题

1
2
cd ~\iTerm2-Color-Schemes\schemes
colortool -d ./Tomorrow.itermcolors