Skip to content

Instantly share code, notes, and snippets.

@elventear
Forked from philiparthurmoore/wget-alias.terminal
Created November 25, 2013 13:10
Show Gist options
  • Select an option

  • Save elventear/7640982 to your computer and use it in GitHub Desktop.

Select an option

Save elventear/7640982 to your computer and use it in GitHub Desktop.
Make a curl behave like wget with an alias
alias wget="curl -O --retry 999 --retry-max-time 0 -C -"
##
# Line should be placed at ~/.bash_profile
# Source: http://www.mymacosx.com/terminal/wget-replacement-macos.html
# Source: http://superuser.com/questions/142459/persistent-retrying-resuming-downloads-with-curl
##
@sbraz
Copy link

sbraz commented Sep 24, 2025

That's no longer needed with curl ≥ 8.14.0, it has a built-in wcurl alias: https://curl.se/wcurl/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment