reujab / silver

A cross-shell customizable powerline-like prompt with icons
MIT License
453 stars 30 forks source link

Add support for Windows #12

Closed lzybkr closed 4 years ago

lzybkr commented 4 years ago

Also add support for PowerShell.

There are some details to work out with PSReadLine, and the Microsoft Terminal also has some issues, but it more or less works.

reujab commented 4 years ago

I was going to write documentation for PowerShell, but I was unable to figure it out myself. What exactly must I type in PowerShell to get this to work?

lzybkr commented 4 years ago

It might not be quite ready for general use, I think a change is needed in PSReadLine first, but:

Add the following to your profile:

$env:SILVER_SHELL = 'powershell' $SILVER = echo status:black:white dir:blue:black git:green:black cmdtime:magenta:black

Also add the output of silver.exe init (after you've set the environment variable above.