reujab / silver

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

update to work better on windows with pwsh #63

Open fdncred opened 3 years ago

fdncred commented 3 years ago

The key to using powershell is making sure that when we use Start-Process make sure we give it an -ArgumentList otherwise the parameters won't work right. Another thing I had to change is when getting the path of the config file, we need to canonicalize it and then remove the \\?\ on windows. The last thing I added, that is now commented out is to allow codelldb.exe to be used as a shell in order to debug what's going on in the program without littering the code with println!()'s.