Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
30
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@cd01

かわいい PowerShell プロンプト

PowerShell のウインドウは全体的に、あんまりかわいくないな(きれいに全画面表示できないところとか)
と感じていたので、プロンプトを、かわいくしてみる。
correct? 知らない子ですね。

顔文字

function Prompt {
    if ($?) {
        Write-Host "(*'-')" -NoNewLine -ForegroundColor "Green"
        return "> "
    } else {
        Write-Host "(*;-;)" -NoNewLine -ForegroundColor "Red"
        return "> "
    }
}

2014-02-17_21h01_58.png

アイコンっぽい感じ

function Prompt {
    if ($?) {
        Write-Host "☀" -NoNewLine -ForegroundColor "Red"
        return "> "
    } else {
        Write-Host "☂" -NoNewLine -ForegroundColor "Cyan"
        return "> "
    }
}

weather.png

see also

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
30
Help us understand the problem. What are the problem?