Skip to content

Instantly share code, notes, and snippets.

@daef
Forked from elventear/wget-alias.terminal
Created January 13, 2025 19:43
Show Gist options
  • Save daef/73c3c0953d544089f9824652601b4408 to your computer and use it in GitHub Desktop.
Save daef/73c3c0953d544089f9824652601b4408 to your computer and use it in GitHub Desktop.
Make a curl behave like wget with an alias
alias wget="curl -L -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
##
@daef
Copy link
Author

daef commented Jan 13, 2025

wget follows redirects, curl doesnt without -L

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