Skip to content

Instantly share code, notes, and snippets.

@FSX
Created April 23, 2010 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FSX/376938 to your computer and use it in GitHub Desktop.
Save FSX/376938 to your computer and use it in GitHub Desktop.
# Medit Gist Tool (Tools menu)
#
# Options: need-doc,need-save
# Command type: Shell command
# Input: None
# Output: None,Asynchronous
# Filter: Default
if which gxmessage>/dev/null; then
DIALOGBIN=gxmessage
else
DIALOGBIN=xmessage
fi
TMPFILE=/tmp/.gist-$(cat /dev/urandom | base64 | head -c8)
pygist "$DOC_DIR/$DOC" > "$TMPFILE"
$DIALOGBIN -center -title Gist -file "$TMPFILE"
rm "$TMPFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment