The term ‘Set-Theme‘ is not recognized as the name of a cmdlet,
解决方案
在powershell中输入$profile,找到文件后,我的结果如下(如果没有就在相同位置创建一个文件,名字一样):
在文件内容更改,注释Set-Theme,在后面加入另一句话,示例如下:
# Set-Theme Paradox
Set-PoshPrompt -Theme M365Princess
oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/M365Princess.omp
原创
2021-12-07 18:49:38 ·
2592 阅读 ·
0 评论