Created
October 1, 2015 07:49
-
-
Save tomoko523/cc336213bc16f36292a9 to your computer and use it in GitHub Desktop.
This file contains 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
#タイトルを変更する | |
$a = (Get-Host).UI.RawUI | |
$a.WindowTitle = "三( `・ω・)\\|| Powershell////(・ω・´ )三" | |
#開始ディレクトリの指定 | |
Set-Location 開始したい場所の絶対パス | |
#実行ポリシー確認 | |
Write-Host "実行ポリシーは" (Get-ExecutionPolicy) "だよ!" -ForegroundColor "Yellow" | |
#かわいい設定 | |
function Prompt { | |
if ($?) { | |
Write-Host "["(Split-Path (Get-Location) -Leaf)"](*'-')" -NoNewLine -ForegroundColor "Green" | |
return "> " | |
} else { | |
Write-Host "["(Split-Path (Get-Location) -Leaf)"](*;-;)" -NoNewLine -ForegroundColor "Red" | |
return "> " | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment