Skip to content

Instantly share code, notes, and snippets.

@jgeorgeson
Last active February 5, 2017 19:23
Show Gist options
  • Save jgeorgeson/2d35e77547e4984d5900f9d42971d5ba to your computer and use it in GitHub Desktop.
Save jgeorgeson/2d35e77547e4984d5900f9d42971d5ba to your computer and use it in GitHub Desktop.
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