Skip to content

Instantly share code, notes, and snippets.

@haacked
Created August 16, 2013 17:48
Show Gist options
  • Save haacked/6251969 to your computer and use it in GitHub Desktop.
Save haacked/6251969 to your computer and use it in GitHub Desktop.
My Microsoft.Powershell_profile.ps1 profile script.
$dir = (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
Push-Location $dir
. (Resolve-Path "$dir\vs2010.ps1")
# . "Bradwils\profile.ps1"
$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
# Set up GitHub environment
Write-Host "Setting up GitHub Environment"
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
Write-Host "Setting up Posh-Git"
. (Resolve-Path "$env:github_posh_git\profile.example.ps1")
Pop-Location
@dahlbyk
Copy link

dahlbyk commented Aug 16, 2013

You have Git installed standalone in addition to the one you ship with GH4W? The only substantial difference with mine is that I do this after loading shell.ps1:

$Env:Path = "$Env:git_install_root\bin;$Env:Path"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment