idea 终端cmd系统变量不全很多命令无法执行修改为powershell,但是输入字体黄色很影响美观,于是乎,修改来了
- C:\Windows\System32\WindowsPowerShell\v1.0 增加配置文件 profile.ps1
文件中颜色配置
$colors = @{}
$colors['Variable'] = [System.ConsoleColor]::DarkCyan
$colors['Member'] = [System.ConsoleColor]::Blue
$colors['Command'] = [System.ConsoleColor]::Blue
$colors['Number'] = [System.ConsoleColor]::DarkGreen
$colors['None'] = [System.ConsoleColor]::Black
$colors['Parameter'] = [System.ConsoleColor]::DarkGray
$colors['Keyword'] = [System.ConsoleColor]::DarkMagenta
$colors['Type'] = [System.ConsoleColor]::DarkBlue
$colors['String'] = [System.ConsoleColor]::DarkGreen
$colors['Operator'] = [System.ConsoleColor]::DarkGray
Set-PSReadLineOption -Colors $colors
2.修改脚本执行策略
管理员运行powershell, 执行命令set-executionpolicy -executionpolicy unrestricted, 选择Y就可以了,看效果,颜色改变了