Created
May 13, 2014 04:33
-
-
Save Kuchitama/47f7d5781c5e842bc135 to your computer and use it in GitHub Desktop.
PowerShellで日時をプロンプトに表示する ref: http://qiita.com/Kuchitama/items/97920cbb250d8cb638e2
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
> Get-Date | |
2014年5月13日 13:24:57 | |
> Get-Date -Format "yyyy/MM/dd HH:mm" | |
2014/05/13 13:24 |
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
function global:prompt { | |
$now = Get-Date -format "yyyy/MM/dd HH:mm" | |
Write-Host($now + " ") -nonewline | |
return "> " | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment