Created
November 6, 2013 11:10
-
-
Save varvaruc/7334411 to your computer and use it in GitHub Desktop.
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
Curl on Windows | |
Installing Curl on Windows is easy as Curl is bundled with msysgit! But before it can be used with Vundle it's required make curl run in command prompt. The easiest way is to create curl.cmd with this content | |
@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 %* | |
And copy it to C:\Program Files\Git\cmd\curl.cmd, assuming msysgit was installed to c:\Program Files\Git | |
to verify all good, run: | |
C:\> curl --version | |
curl 7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k zlib/1.2.3 | |
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp | |
Features: Largefile NTLM SSL SSPI libz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment