#!/bin/sh

# Uploads a gist and copies to the resulting URL to the clipboard.
# (Instead of the primary X selection, which requires using the mouse. Bah.)
url=$(command gist "$@")
echo "${url}" | xcp
echo "${url}"
