Skip to content

Instantly share code, notes, and snippets.

@ui2code
Last active July 17, 2016 09:04
Show Gist options
  • Save ui2code/f292e2d9daae9c77c09fe73ed8e03095 to your computer and use it in GitHub Desktop.
Save ui2code/f292e2d9daae9c77c09fe73ed8e03095 to your computer and use it in GitHub Desktop.
Run ssh-agent on startup in Cmder. path : cmder\vendor\init.bat or cmder\config\user-startup.cmd (tested on v1.2.9)
@echo off
ssh-agent | grep -v echo | sed -e "s/^/@set /" | sed -e "s/;.*$//" - > call.cmd
call call.cmd
del call.cmd
ssh-add "%HOME%\.ssh\id_rsa"
@echo on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment