# urls
$modern_gist = "https://gist.githubusercontent.com/fabricesemti80/4b1d84458d3d0cf245ca1cfcbbc0c19b/raw/c86a7f0bfb6174dfec1c517166c2754aba496dde/modern-profile.ps1"
$legacy_gist = "https://gist.githubusercontent.com/fabricesemti80/4b1d84458d3d0cf245ca1cfcbbc0c19b/raw/12447d7faf1099c30c81dfead472ab98f60aa204/legacy-profile.ps1"
# execute
Invoke-WebRequest $modern_gist -OutFile $profile.CurrentUserAllHosts
Invoke-WebRequest $legacy_gist -OutFile "$env:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1"
Invoke-WebRequest $legacy_gist -OutFile "$env:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"
These few lines (please make sure the gist URL-s are up-to date; check them here: https://gist.github.com/fabricesemti80/4b1d84458d3d0cf245ca1cfcbbc0c19b) should replace your PowerShell profile with a custom one (according to my preference). From there you can adjust them.
-
the moder one works with the more modern tools (VSCode, Windows Terminal)
-
the modern one would work with the legacy tools (ISE, built-in PS), but even if you change the font type, ISE would still display just a bunch of numbers instead of the symbols, so you might want to use a different - not equivalent! - approach
As the modern profile currently uses starship, you may want to visit the site of this excelent tool! (I do not take credit for it or affiliated to them - just my prefernce, since it works on Win and Unix systems as well ;-) )
This is not the final form, I might adjust my settings. As I made this for myself - in an effort to standardise my env in work and home computers - use it at your own risk!