powershell - 在 PowerShell 中更改第一个输入单词的颜色

标签 powershell

我想将第一个控制台语句的颜色从黄色更改为其他颜色,因为它在白色背景上看起来很糟糕。我怎样才能做到这一点 ? enter image description here

enter image description here

最佳答案

更新:对于较新版本请使用此命令:

Set-PSReadLineOption -Colors @{ Command = 'Red' }

颜色列表:

  • 黑色
  • 深蓝色
  • 深绿色
  • 深青色
  • 深红色
  • 深洋红色
  • 深黄色
  • 灰色
  • 深灰色
  • 蓝色
  • 绿色
  • 青色
  • 红色
  • 洋红色
  • 黄色
  • 白色

关于powershell - 在 PowerShell 中更改第一个输入单词的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43015262/

相关文章:

regex - 如何使用Regex通过PowerShell从专有名称中仅提取CN

powershell - 无法将默认终端设置为 PowerShell 6.0

powershell - 在Powershell中显示文件的实时内容

powershell - 从Powershell编译名称为1.0的gcc库

sql-server - 使用 PowerShell 脚本复制 SQL Server 数据库

powershell - 在 Powershell 中不使用 dispose() 有多糟糕?

用于将 VolumeID 与 DriveLetter 进行比较的 Powershell 脚本

c# - 如何使用任务并行库在 C# 中执行 PowerShell 脚本

powershell - 如何在不扩展 token 的情况下获取 PATH 环境变量的值?

powershell - 只有一个条目的多维数组