Skip to content

Instantly share code, notes, and snippets.

@alexkubica
Created November 22, 2019 12: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 alexkubica/e9ac7cb749c756d1491c185ef085ad35 to your computer and use it in GitHub Desktop.
Save alexkubica/e9ac7cb749c756d1491c185ef085ad35 to your computer and use it in GitHub Desktop.
cmder - load ssh keys on startup
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: uncomment this to have the ssh agent load when cmder starts
call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" /k exit
:: change the next 2 lines to add or load different ssh keys
ssh-add "%USERPROFILE%/.ssh/github"
ssh-add "%USERPROFILE%/.ssh/gitlab"
:: uncomment the next two lines to use pageant as the ssh authentication agent
:: SET SSH_AUTH_SOCK=/tmp/.ssh-pageant-auth-sock
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-pageant.cmd"
:: you can add your plugins to the cmder path like so
:: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%"
:: arguments in this batch are passed from init.bat, you can quickly parse them like so:
:: more useage can be seen by typing "cexec /?"
:: %ccall% "/customOption" "command/program"
@echo off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment