Last active
October 20, 2015 13:18
-
-
Save Dillie-O/89145ed6636b76b6dd0a to your computer and use it in GitHub Desktop.
PowerShell script to load SSH Agent Utils and PoshGit
This file contains hidden or 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
| # 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