Last active
February 5, 2017 19:23
-
-
Save jgeorgeson/2d35e77547e4984d5900f9d42971d5ba 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
set-alias -name npp -value "C:\Program Files (x86)\Notepad++\notepad++.exe" | |
function prompt { | |
Write-Host "$(Get-Date -Format G) " -NoNewline -ForegroundColor Gray | |
Write-Host "$env:USERNAME " -NoNewLine -ForegroundColor DarkCyan | |
Write-Host $($(Get-Location) -replace ($env:USERPROFILE).Replace('\','\\'), "~") -NoNewLine -ForegroundColor Cyan | |
Write-VcsStatus | |
"`n$('>' * ($nestedPromptLevel + 1)) " | |
} | |
<# | |
https://github.com/dahlbyk/posh-git#installing-posh-git-via-powershellget | |
Install with 'PowerShellGet\Install-Module posh-git -Scope CurrentUser' | |
On Win7 also install PSReadline | |
May need to set execution policy 'Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm' | |
#> | |
Import-Module posh-git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment