Created
November 1, 2010 22:06
-
-
Save torsten/658961 to your computer and use it in GitHub Desktop.
.zshrc lines for fetch/wget style downloading with curl and ruby
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
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