Skip to content

Instantly share code, notes, and snippets.

@tj
Created November 20, 2012 23:14
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 tj/66eb21d18abe9ffa80b9 to your computer and use it in GitHub Desktop.
Save tj/66eb21d18abe9ffa80b9 to your computer and use it in GitHub Desktop.
get() {
local prev=`pwd`
local repo=$1
rm -fr /tmp/gpm \
&& mkdir /tmp/gpm \
&& cd /tmp/gpm \
&& curl -#L https://github.com/$repo/tarball/master \
| tar zx --strip 1 \
&& make install \
&& cd $prev
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment