LiMee
49 天前
好像所有浅色主题都有看不清字的毛病,我的解决方案:
1. 为 Powershell 添加 profile
```
# Profile of Windows Powershell
# Enable color in ls command.
Import-Module PSColor
# Enable PSReadLine
# Settings for PSReadLine
Import-Module PSReadLine
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -Colors @{
Command = 'Black' # Get-Process
Number = 'DarkGreen' # 123
Member = 'Black' # object.Method?
Operator = 'DarkYellow' # +-*/
Type = 'DarkCyan' # [System.String]
Variable = 'DarkBlue' # $profile
Parameter = 'DarkYellow' # git --clone
ContinuationPrompt = 'DarkRed' # Line Breaks
Default = 'Black' # Default
InlinePrediction = '#BBBBBB' # Autocomplete
}
```
2. 使用内置的 One Half Light 主题,但是把里面的白色,用黑色的相应颜色替换掉
---
这样操作下来应该不会再有看不清字的现象,好不好看另说