http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/09/29/powershell-profile-instant-prompt.html
This will let the job’s output be the text printed by oh-my-posh that we can consume
with Invoke-Expression later. Finally, we print out a nice little prompt - not as fancy as oh-my-posh ’s, but it’ll
do, and it’ll display almost instantly. Finally, let’s fill in the if -block for when the global variable is set (on the second invocation of prompt ): Import-Module PSReadLine ; function prompt { if ( Test-Path variable:global:ompjob ) { Receive-Job -Wait -AutoRemoveJob -Job $ global :...