Sometimes your eyes need something to look at and relax while starting up PowerShell.

Add the following code to the path in the $Profile variable and enjoy your Unicorn. Yes, this may be a rather useless thing to do. But remember you can add everything into your $Profile and load it whenever you start your PowerShell terminal.
function Get-RandomColor($string){
$ColorArray = "Cyan","Green","Red","Yellow"
Write-Host -ForegroundColor $ColorArray[(Get-Random -Minimum 0 -Maximum ($ColorArray.Length -1))] -Object $string
}
$AsciiUnicorn = @"
ji
/.(((
(,/"(((__,--.
) _( /{
!|| " :||
!|| :||
''' '''
"@
0..8 | %{sleep -Milliseconds 100 ; cls; Get-RandomColor $AsciiUnicorn}
Leave a Reply