Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created February 23, 2012 22:25
Show Gist options
  • Select an option

  • Save clauswitt/1895379 to your computer and use it in GitHub Desktop.

Select an option

Save clauswitt/1895379 to your computer and use it in GitHub Desktop.
Deploy blog via textmate command
#!/usr/bin/env zsh
function pre {
echo -n '<pre style="word-wrap: break-word;">'
perl -pe '$| = 1; s/&/&amp;/g; s/</&lt;/g; s/>/&gt;/g; s/$\\n/<br>/'
echo '</pre>'
}
cd ~/Documents/Projects/clauswitt.com/
./deploy.sh | pre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment