spencerwooo / dotfiles-archive

Dotfiles for all :D
MIT License
761 stars 99 forks source link

求助,prompt颜色更改 #7

Closed Whale-fall closed 4 years ago

Whale-fall commented 4 years ago

大佬好,我在参照你的dotfile配置wt终端时,发现颜色显示异常,同一种配色在fluent terminal和在windows terminal下显示不一致,如下: image image 主要是有两点让我觉得难受: 1.wt中prompt好像格子显示的很明显,有什么办法可以让其看起来和谐一点嘛 2.wt中要怎么更改某一部分的配色呢,比如whalefall 的那一部分,我调整了很多次都不能像fluent-terminal中显示的那么清楚。 谢谢!

spencerwooo commented 4 years ago
  1. 字体问题,可以换别的支持 Powerline 字符的字体,比如搜索 Nerd Font 即可
  2. 配色不是 Windows Terminal 的 Profile 里面修改的,而是在 oh-my-posh 的主题文件中修改,这里的颜色定义位于 ... -Object "$user@$computer " -ForegroundColor $sl.Colors.PromptForegroundColor ... 里面的 $sl.Colors.PromptForegroundColor,这里修改即可

image