Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" causes lambda prompt not appearing #1807

Closed
Kurdym opened this issue Jun 10, 2018 · 3 comments

Comments

@Kurdym
Copy link

Kurdym commented Jun 10, 2018

On a fresh unzipped cmder, I get this on startup:

image

When uncommenting "call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"", and then startup, I first have to exit to get to the Lambda:

image

I want the second situation to be like the first, directly to the Lambda prompt.

@Archez
Copy link

Archez commented Jun 27, 2018

This is being caused by the last few lines of start-ssh-agent.cmd. Specifically these lines (84-86):

@IF NOT ERRORLEVEL 1 @(
    @CALL cmd %*
)

Here, a new cmd prompt is being spawned with the arguments supplied by %* (which currently is empty, causing the prompt to wait). Unfortunately these lines of code are provided by git-for-windows, not cmder.

A workaround that you can use would be to adjust the line in user-profile.cmd to say:

call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" /k exit

The /k exit will be used as the arguments supplied by %* and will effectively auto exit the new cmd for you.

@reypm
Copy link

reypm commented Jul 10, 2018

@Archez I am having exactly the same issue but your solution is working partially for me. Having the line as you said before in the user-profile.cmd does start the agent properly but I got the following message after run the command: ssh-add ~/.ssh/id_sls:

λ ssh-add ~/.ssh/id_sls
Error connecting to agent: No such file or directory

Do you have any suggestion and/or idea in how to fix this?

@BrySi
Copy link

BrySi commented Jul 18, 2018

Hey @reypm
I had the same issue as you and found an answer on #1781
Hope it'll solve your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants