Created
November 22, 2019 12:29
-
-
Save alexkubica/e9ac7cb749c756d1491c185ef085ad35 to your computer and use it in GitHub Desktop.
cmder - load ssh keys on startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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