Apply configuration on each Powershell version. Use command mklink /h target/Profile.ps1 source/Profile.ps1 to create a symlink so that you only need to edit 1 Profile.ps1 file.
-
Install
oh-my-poshusing winget. -
Install
psreadline. -
Intall
fnm. -
Each PowerShell Version has its own Profile path given by
$PSHOME\Profile.ps1. Preferred Configuration:oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\zash.omp.json | Invoke-Expression Set-PSReadLineOption -HistorySearchCursorMovesToEnd Set-PSReadLineOption -PredictionSource History Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward fnm env --use-on-cd | Out-String | Invoke-Expression fnm use 16.14.2
More: