Skip to content
26 lines (16 sloc) 632 Bytes
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
# Set up a simple prompt, adding the git prompt parts inside git repos
function global:prompt {
Write-Host($pwd.ProviderPath) -nonewline
return "> "
Start-SshAgent -Quiet
Jump to Line
Something went wrong with that request. Please try again.