Created
July 8, 2016 11:16
-
-
Save johnkors/f0c112e5a5b11dae258dd2cf22d2b88f to your computer and use it in GitHub Desktop.
cmder user-profile.cmd (ssh-agent, updated path to git)
This file contains hidden or 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
echo "*** Welcome, John! ***" | |
set "GIT_INSTALL_ROOT=C:\tools\msysgit" | |
:: Add git to the path | |
if defined GIT_INSTALL_ROOT ( | |
set "PATH=%GIT_INSTALL_ROOT%\bin;%GIT_INSTALL_ROOT%\usr\bin;%GIT_INSTALL_ROOT%\usr\share\vim\vim74;%PATH%" | |
:: define SVN_SSH so we can use git svn with ssh svn repositories | |
if not defined SVN_SSH set "SVN_SSH=%GIT_INSTALL_ROOT:\=\\%\\bin\\ssh.exe" | |
) | |
:: Enable SSH for git push/pull w/o needing to enter pwd for every time | |
@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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment