posh | funny prompt

        [INT] $X = 225
        [INT] $Y = 30000
        [INT] $X1 = 225
        [INT] $Y1 = 80
        $GLOBAL:__size__ = New-Object System.Management.Automation.Host.Size;
        $GLOBAL:__size__.Width = $X;
        $GLOBAL:__size__.Height = $Y;
        $Host.UI.RawUI.BufferSize = $GLOBAL:__size__;
        $GLOBAL:__size__.Width = $X1;
        $GLOBAL:__size__.Height = $Y1;
        $Host.UI.RawUI.WindowSize = $GLOBAL:__size__;
$pwd = $Host.UI.ReadLine()
if($pwd -ne "/'],lp123"){
    function prompt
    {
        $s__t__r = 0..100 | %{}{$r__t__s += "♥ "}{$r__t__s}
        $r__t__n = 0..($s__t__r.length - 1) | %{}{$n__t__r += ([char] 8)}{$n__t__r}
        $random = new-object random
        $color=[System.ConsoleColor]$random.next(1,16)
        #Write-Host ("PS " + $(get-location) +">") -nonewline -foregroundcolor Magenta 
        Write-Host ("`nlast line is : $$`n$s__t__r") -nonewline -foregroundcolor $color
        return $r__t__n
    }
}
Comments