ref: 57accdce66f2e6f1c6ed26c42b57cdefdec2ed24
./bash_functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
function ghpage() { SUNDOWN=$HOME/Github/sundown/sundown; echo ' body { margin: 0; padding: 0; font-family: 'Helvetica'; } p, li { font-family: 'Georgia'; font-size: 16px; line-height: 140%; } #wrap { width: 700px; margin: 0 auto; } .left { width: 420px; padding-right: 55px; float: left; } .right { width: 225px; float: right; } .normal { clear:both; } #footer { margin: 50px 0 20px; } #footer p { text-align: center; font-size: 12px; } ' > style.css; MARKDOWN=`$SUNDOWN index.md`; HTML=`echo ' <!doctype html> <html> <head> <title>Honza Pokorny Project</title> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div id="wrap"> '; echo $MARKDOWN; echo ' </div> <div id="footer"> <p>© 2012 - Honza Pokorny - All rights reserved</p> </div> </div> </body> </html> '`; echo $HTML > index.html; }; function lt { loc=~/Dropbox/Templates/ if [ $1 ] then if [ $1 == "simple" ] then p="$loc"simple.tex elif [ $1 == "letter" ] then p="$loc"letter.tex else echo "don't know this type" fi cp $p . else echo "You need an argument. Either 'simple' or 'letter'." return fi } # vim:filetype=sh: |