Just put the function prompt in your PowerShell profile (notepad $PROFILE), e.g.:function prompt {"PS: $(get-date)>"}或彩色:function prompt{ Write-Host ("PS " + $(get-date) +">") -nonewline -foregroundcolor White return " "} 这篇关于Windows PowerShell:更改命令提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!