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