Created
July 8, 2009 15:24
-
-
Save brandondrew/142912 to your computer and use it in GitHub Desktop.
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
#!/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