whe*_*eee 5 windows powershell
在那里我可以找到人们已经建造的Powershell配色方案吗?像https://github.com/lysyi3m/osx-terminal-themes,但对于Windows Powershell而不是OSX.
我找到了这个:https://github.com/Segaso/MonokaiTheme,但我很困惑我在哪里找到这个"工具".当我右键单击任何PowerShell窗口的顶部时,我看到的就是:
这就是我在属性中看到的全部内容:
Amj*_*d K 11
这简单。您可以在powershell中运行这些命令。这是定制的配色方案。
$Host.UI.RawUI.BackgroundColor = ($bckgrnd = 'Black')
$Host.UI.RawUI.ForegroundColor = 'White'
$Host.PrivateData.ErrorForegroundColor = 'DarkRed'
$Host.PrivateData.ErrorBackgroundColor = $bckgrnd
$Host.PrivateData.WarningForegroundColor = 'Yellow'
$Host.PrivateData.WarningBackgroundColor = $bckgrnd
$Host.PrivateData.DebugForegroundColor = 'Yellow'
$Host.PrivateData.DebugBackgroundColor = $bckgrnd
$Host.PrivateData.VerboseForegroundColor = 'Green'
$Host.PrivateData.VerboseBackgroundColor = $bckgrnd
$Host.PrivateData.ProgressForegroundColor = 'Blue'
$Host.PrivateData.ProgressBackgroundColor = $bckgrnd
Clear-Host
Run Code Online (Sandbox Code Playgroud)
如果您想拥有自己的方案,则可以根据需要选择颜色。
跑
get-help write-host
Run Code Online (Sandbox Code Playgroud)
您将获得适用于Powershell的所有颜色。
小智 10
微软自己去年发布了Windows Console Colortool
它适用于/修改任何控制台应用程序(cmd/Powershell/WSL-bash)的调色板.
colortool将适用于任何.itermcolors方案.