Skip to content

Instantly share code, notes, and snippets.

@torsten
Created November 1, 2010 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torsten/658961 to your computer and use it in GitHub Desktop.
Save torsten/658961 to your computer and use it in GitHub Desktop.
.zshrc lines for fetch/wget style downloading with curl and ruby
fetch() {
ruby -e 'u=$*[0];q=39.chr;exec %Q{curl #{q+u+q} > \
#{q+u.gsub(%r{^.+/},"")+q}}' -- "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment