Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell takes a long time to load on start-up while loading ssh-agent / git

I have Powershell set to use posh-git through Git for Windows. In my profile file I have this:

# If Posh-Git environment is defined, load it.
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
. $env:github_posh_git\profile.example.ps1

Every time I open Powershell it requests the passphrase for my id_rsa key. That's fine but it takes longer and longer to actually display the request. When I first set it up this way it prompted for the pass quite fast but the loading times increased over time.

Any suggestions? I don't even know what to begin with in looking into this.

like image 838
Florin Gogianu Avatar asked May 12 '13 11:05

Florin Gogianu


1 Answers

The problem is indeed slow setting of user environment variables. I recently merged a change that uses a temp file instead.

The latest GH4W (1.0.48.0) includes this change.

like image 77
dahlbyk Avatar answered Sep 29 '22 01:09

dahlbyk