Last active
December 14, 2015 19:58
-
-
Save isao/5139960 to your computer and use it in GitHub Desktop.
BBEdit Text Filter to create a gist from the current selection, using https://github.com/defunkt/gist
This file contains hidden or 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/sh -e | |
tmp=/tmp/bbgist.tmp | |
#get stdin | |
pbcopy <&0 | |
#echo to stdout and a file | |
pbpaste -Prefer txt | tee $tmp | |
#gist it with https://github.com/defunkt/gist then open in a browser | |
gist -o -d "$BB_DOC_NAME" < $tmp >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment