Skip to content

Instantly share code, notes, and snippets.

@persand
Created November 10, 2011 18:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save persand/1355592 to your computer and use it in GitHub Desktop.
Save persand/1355592 to your computer and use it in GitHub Desktop.
Bash script for gist.github.com/x URL:s -> git.io
function shist() {
if [ -n "$2" ]; then
curl -i http://git.io -F url=https://gist.github.com/"$1" -F code="$2";
else
curl -i http://git.io -F url=https://gist.github.com/"$1";
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment