Created
April 11, 2021 00:00
-
-
Save potatoqualitee/6949f6203cd8052308fc708045bab37a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$MyScript = [powershell]::Create() | |
$null = $MyScript.AddScript( { Import-Module -Name Terminal-Icons } ) | |
$Runspace = [runspacefactory]::CreateRunspace() | |
$MyScript.Runspace = $Runspace | |
$null = Register-ObjectEvent -InputObject $MyScript -EventName InvocationStateChanged -Action { | |
Import-Module -Name Terminal-Icons | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey David, we were trying to figure out how to load Terminal Icons a bit faster so that it wouldn't delay the loading of our profiles. I ended up going with the second code block, I believe.