Skip to content

Instantly share code, notes, and snippets.

@doug
Created December 13, 2013 06:24
Show Gist options
  • Save doug/7940500 to your computer and use it in GitHub Desktop.
Save doug/7940500 to your computer and use it in GitHub Desktop.
Curl download extract and expand a gist. Useful for bootstrapping.
function getgist() {
curl -0 $1/download | tar -xz
set -- gist*
mv $1/* .
rmdir $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment