defunkt/gist — pull request #125 by jayson (2013-01-31 05:19:28+00:00)
Title: Preventing gist from throwing errors when xclip is installed but X11 isn't present (forwarding or otherwise)

If someone has xclip installed on a remote machine but isn't forwarding X11 at the time (or even locally for various reasons), it will throw a broken pipe error. This prevents that by checking the environment variable display before attempting to throw the gist url into xclip