Skip to content

Instantly share code, notes, and snippets.

@morhetz
Created April 6, 2011 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save morhetz/904906 to your computer and use it in GitHub Desktop.
Save morhetz/904906 to your computer and use it in GitHub Desktop.
Just put it to your "Git\cmd" directory
@rem Do not use "echo off" to not affect any child calls.
@setlocal
@rem Get the abolute path to the parent directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@curl.exe %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment