Windows PowerShell: changing the command prompt

前端 未结 6 817
渐次进展
渐次进展 2020-11-30 20:27

Using Windows PowerShell, how do I change the command prompt?

For example, the default prompt says

PS C:\\Documents and Settings\\govendes\\My Docume         


        
6条回答
  •  时光取名叫无心
    2020-11-30 21:07

    If you want to do it yourself, then Ocaso Protal's answer is the way to go. But if you're lazy like me and just want something to do it for you, then I highly recommend Luke Sampson's Pshazz package.

    Just to show you how lazy you can be, I'll provide a quick tutorial.

    • Install Pshazz with Scoop (scoop install pshazz)
    • Use a nice predefined theme (pshazz use msys)
    • Drink (root) beer

    Pshazz also allows you to create your own themes, which is as simple as configuring a JSON file. Check out mine to see how easy it is!

提交回复
热议问题