Skip to content

Instantly share code, notes, and snippets.

@saitodev
Last active December 21, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saitodev/6327050 to your computer and use it in GitHub Desktop.
Save saitodev/6327050 to your computer and use it in GitHub Desktop.
This batch file start 'ssh-agent' and set environment variables. Put this file to your startup folder.
C:\cygwin\bin\bash.exe -c "/usr/bin/ssh-agent | /usr/bin/sed -e '/echo/d' | /usr/bin/cut -f 1 -d ';' | /usr/bin/tr '=' ' ' | while read line; do setx.exe $line; done;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment