shrop / dotfiles

$HOME sweet ~/
7 stars 4 forks source link

Setup curlrc with -O #24

Open shrop opened 8 years ago

shrop commented 8 years ago

This will allow curl to behave more like wget for downloading files automatically.

BONUS — Magic cURL Feature with Daniel Stenberg UN-RECOMMEND APR 30, 2015 ⋅ 2:20 THE CHANGELOG This is a bonus clip from the after call with Daniel Stenberg for episode #153. Daniel shared the details of a “magic feature” in cURL that’s been there for over 6 years. It’s a feature he feels most people don’t know exists.

Notes and Links

To start using this “magic feature”, create a .curlrc dotfile in your root with the following settings to set the -O flag by default on all URLs fetched using cURL.

Default to -O

--remote-name-all