Skip to content

Instantly share code, notes, and snippets.

@brandondrew
Created July 8, 2009 15:24
Show Gist options
  • Save brandondrew/142912 to your computer and use it in GitHub Desktop.
Save brandondrew/142912 to your computer and use it in GitHub Desktop.
#!/bin/zsh
mkdir -p /tmp/gist
cd /tmp/gist
curl http://github.com/defunkt/gist/raw/master/gist.rb > gist
chmod 755 gist
sudo mv gist /usr/local/bin/gist
echo "Command-line Gist is now installed"
echo
echo "Examples: "
echo "$ gist < file.txt"
echo "$ echo secret | gist --private # or -p"
echo "$ gist 1234 > something.txt"
echo
echo "Authentication: "
echo "Set up your git configuration with your GitHub username and token."
echo 'git config --global github.user "joeshmoe"'
echo 'git config --global github.token "12345678901234567890"'
echo "You can find your token in your account: https://github/account"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment