Created
April 26, 2015 04:52
-
-
Save inexorabletash/8fb5fc6ae9e189e25026 to your computer and use it in GitHub Desktop.
PowerShell Profile
This file contains hidden or 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
# Custom prompt | |
function prompt { | |
write-host -NoNewLine -ForegroundColor Red $pwd | |
# Current git branch name | |
$branch = git rev-parse --abbrev-ref HEAD | |
if ($branch) { | |
write-host -NoNewLine -ForegroundColor Green (' [' + $branch + ']') | |
} | |
" PS> " | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment