#%% 找出 `oh-my-posh` 用到的特殊字符importos,redefget_posh_symbols(root):# 找到所有配置文件files=[]# - 默认配置文件default_file=os.path.join(root,'defaults.ps1')files.append(default_file)# - 主题配置文件themes_dir=os.path.join(root,'Themes')forparent,dirnames,filenamesinos.walk(themes...
推荐使用 Darkblood ,因为和vs code 一起使用的话,vs里面展示的终端,这个看起来更兼容一些 符号少。主题需要下载字体和图标才好看。 卸载主题 清空里面的内容Microsoft.PowerShell_profile.ps1 即可。 Import-Moduleposh-gitImport-Moduleoh-my-poshSet-PoshPrompt-ThemeDarkblood...
Windows Terminal 配置oh-my-posh主题 记录 https://cloud.tencent.com/developer/article/1538644 安装就省略了,只记录更换主题步骤, 其中Set-Theme Honukai是设置主题的,其他可选主题有 Agnoster、Avit、Darkblood、Fish、Honukai、Paradox、Sorin、tehrob,可自行选择。 保存后关闭记事本。
Import-Module posh-git Import-Module oh-my-posh Set-Theme Honukai 保存后关闭记事本。 其中Set-Theme Honukai是设置主题的,其他可选主题有Agnoster、Avit、Darkblood、Fish、Honukai、Paradox、Sorin、tehrob,可自行选择。 最后更新配置: 代码语言:javascript 复制 C:\Users\Kuan\Documents\WindowsPowerShell\Micro...