设置背景图片
-
https://blog.csdn.net/hang916/article/details/93488352
字体设置 - https://www.cnblogs.com/enjoy233/p/simple_guide_to_beautify_powershells_in_Windows_Terminal.html
步骤
git clone https://github.com/powerline/fonts
cd fonts
./install.ps1
这个时候要等待把字体库全部装完。
(使用管理员权限运行,安装失败建议使用set-executionpolicy Bypass
)
使用
choco install firacode
然后在配置文件的fontFace
中更改字体为firacode
例如

配置单powershell
在新的terminal中执行code $profile
,
然后在配置文件中会看到
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Agnoster #Set-Theme robbyrussell
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
修改提示文字
在ps中执行code $profile
(此时会以vscode打开,如果没有vscode,可以note $profile)

然后添加上
function prompt{"HAPPY: $pwd >"}
就能自定义文字了。注意,如果要在自定义文字中加入emoji,需要将文件以
UTF-16 LE
格式保存。
网友评论