Thursday, November 10, 2016

Change the PowerShell prompt

The PowerShell prompt can be modified by function prompt.


For example, perform Function prompt {'PS terrytlslau.tls1.cc'} to change the PowerShell as the following.


To restore to original, we can perform Function prompt {'PS ' + $pwd + '>'}



This posting is provided “AS IS” with no warranties, and confers no rights!

No comments:

Post a Comment