Windows Terminal美化
1.默认配置
"defaults":
{
// Put settings here that you want to apply to all profiles.
"acrylicOpacity": 0.8, //背景透明度
"useAcrylic": true // 启用毛玻璃
},
效果
2.主题配置
安装模块
Install-Module git-aliases -AllowClobber
Install-Module posh-git
Install-Module oh-my-posh #
Install-Module DirColors #让 ls (Get-ChildItem) 像 Unix 系终端一样具有多彩色
加载模块
Import-Module DirColors
Import-Module posh-git
Import-Module oh-my-posh
Import-Module git-aliases -DisableNameChecking
Set-Theme PowerLine
oh-my-posh提供了 10 款 漂亮 的主题供我们选择。
Agnoster,Avit,Darkblood,Fish,Honukai,Paradox,PowerLine,robbyrussell,Sorin,tehrob
可以使用Set-Theme [主题名]配置主题
保存配置
- 1
输入
$PROFILE
- 2
输入
code $PROFILE
- 3
在打开的文件中输入
Import-Module DirColors
Import-Module posh-git
Import-Module oh-my-posh
Import-Module git-aliases -DisableNameChecking
Set-Theme PowerLine
Comments | 0 条评论