Created
October 22, 2014 12:03
-
-
Save tomoh1r/8c15ce88f31396ade9a1 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
$_path = $(Get-Location).Path | |
if ($_path.IndexOf($ENV:HOME) -eq 0) { | |
$_path = Join-Path '~' ($PWD.ProviderPath.Remove(0, ($ENV:HOME).Length)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment