【问题标题】:change colour for parameters on powershell linux [closed]在powershell linux上更改参数的颜色[关闭]
【发布时间】:2018-11-09 21:57:14
【问题描述】:

你能看到-Uri 参数吗?这在 linux 上很难阅读。

有没有办法改变颜色?

【问题讨论】:

标签: linux powershell console powershell-core


【解决方案1】:

赫曼特answered my question on twitter。您可以使用 Cmdlet Get-PSReadLineOption 查看颜色设置。要编辑属性ParameterColor,我运行了Set-PSReadLineOption -Colors @{"Parameter"=[ConsoleColor]::Gray}

【讨论】:

  • 是的.. 看看Get-Help -Name Set-PSReadLineOption 会告诉你这一点。
  • 也很有用:Get-Help -Name Set-PSReadLineOption -examples
猜你喜欢
  • 1970-01-01
  • 2021-12-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多