-
-
Save jimbrig/748b08d9ed84aae58e95bbaa6dc93af1 to your computer and use it in GitHub Desktop.
Show spinner on the Windows Terminal tabs for every command.
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
| $global:originalPSConsoleHostReadLine = $function:global:PSConsoleHostReadLine | |
| $global:originalPrompt = $function:global:Prompt | |
| $function:global:PSConsoleHostReadLine = { | |
| $startProgressIndicator = "`e]9;4;3;50`e\" | |
| $command = $originalPSConsoleHostReadLine.Invoke() | |
| $startProgressIndicator | Write-Host -NoNewLine | |
| $command | |
| } | |
| $function:global:Prompt = { | |
| $stopProgressIndicator = "`e]9;4;0;50`e\" | |
| $stopProgressIndicator | Write-Host -NoNewLine | |
| $originalPrompt.Invoke() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment