Source git-prompt.sh if present.
[msysgit.git] / git-cmd.bat
blob6bfccffc833c67912018b0018eb21f3bc8e9a343
1 @rem Do not use "echo off" to not affect any child calls.\r
2 @setlocal\r
3 \r
4 @rem Get the abolute path to the current directory, which is assumed to be the\r
5 @rem Git installation root.\r
6 @for /F "delims=" %%I in ("%~dp0") do @set git_install_root=%%~fI\r
7 @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%PATH%\r
8 \r
9 @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%\r
10 @if not exist "%HOME%" @set HOME=%USERPROFILE%\r
12 @set PLINK_PROTOCOL=ssh\r
14 @cd %HOME%\r
15 @start %COMSPEC%\r