Only run Pageant during Ssh-AddKey if keys found
Make paths for Pageant and ssh-agent more alike.
Also changes gets some information in a more intelligent manner.
Also changes Start-SshAgent() to use Add-SshKey() for both agents.
On PowerShell launch, check to see if GIT_SSH exists and is set to plink. If so, check to see if pageant is running and return if it is. If pageant is not running, attempt to start it and load all .ppk files stored in ~/.ssh Requires pageant to be on path for it to be launched.
commit 72fde6f made $pathToTest use Join-Path and in the process dropped the fullname from $checkin. On my system, this had the negative of introducing as PS to my prompt when outside of a git repository. Restoring $checkIn.fullname leaves the path on the prompt an expected c:\path> instead of c:\pathPS>
ssh-add, if run without parameters, will add all the keys found in ~/.ssh. There is no need to use a default file when calling it.
Pretty sure GH4W has logic similar to this...might as well share. File defaults to id_rsa.
[EnvironmentVariableTarget]::User is painfully slow, because it notifies other processes of the changed value. Closes #88
To enable the posh-git title with no prefix: $GitPromptSettings.EnableWindowTitle = $true To use a custom prefix: $GitPromptSettings.EnableWindowTitle = 'Cool: ' Also, dashes have been removed from default prefix due to Console2 bug: http://sourceforge.net/projects/console/forums/forum/143117/topic/3949992
…nch to the window title
This has not been tested, but the pattern is tried and true. Closes #32