Skip to content

Instantly share code, notes, and snippets.

@avhm
Created November 15, 2011 23:23
Show Gist options
  • Save avhm/1368722 to your computer and use it in GitHub Desktop.
Save avhm/1368722 to your computer and use it in GitHub Desktop.
Simple textmate 'open preview' code
# Place the below code into a command within a new bundle, and set the output to 'Show as HTML'
#!/bin/bash
echo "<script>window.resizeTo(800,1000); window.location = '$TM_FILEPATH';</script>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment