标签: powershell
有没有办法可以将$Host.UI.RawUI.BackgroundColor设置为别名,这样我就不必每次都输出整个内容了?
$Host.UI.RawUI.BackgroundColor
答案 0 :(得分:2)
function bgc { param($color); $Host.UI.RawUI.BackgroundColor = $color } C:\PS> bgc 'Red'
向PSProfile添加功能