Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Last active October 20, 2015 13:18
Show Gist options
  • Select an option

  • Save Dillie-O/89145ed6636b76b6dd0a to your computer and use it in GitHub Desktop.

Select an option

Save Dillie-O/89145ed6636b76b6dd0a to your computer and use it in GitHub Desktop.
PowerShell script to load SSH Agent Utils and PoshGit
# Update path for SSH (Loaded in PowerShell Profile)
$env:path += ";" + (Get-Item "Env:ProgramFiles").Value + "\Git\bin"
$env:path += ";" + (Get-Item "Env:ProgramFiles").Value + "\Git\usr\bin"
# Load SSH agent utils
. (Resolve-Path ~/Documents/WindowsPowershell/ssh-agent-utils.ps1)
# Spoof terminal environment for git color.
$env:TERM = 'cygwin'
# Load posh-git example profile, which will setup a prompt
. 'C:\tools\poshgit\dahlbyk-posh-git-869d4c5\profile.example.ps1'
Pop-Location
Add-SshKey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment