blob: feaf245abb203246d1a837f879cad7bdad64efc7 [file] [log] [blame]
Mark Szymanski7b131202010-11-13 10:21:59 -06001# Open the root of your site in your vim or builtin cd to it
Mark Szymanskic92a5f22010-10-23 10:57:31 -05002
Robert R Evans044a1162010-11-02 13:45:21 -07003if [[ $EDITOR = "vim" ]]
Mark Szymanski2c988b82011-01-01 18:07:49 -06004then
5 alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
6else
7 alias newentry="builtin cd $JEKYLL_LOCAL_ROOT"
Mark Szymanski689afd92010-11-01 20:05:33 -05008fi
Mark Szymanskic92a5f22010-10-23 10:57:31 -05009
Mark Szymanskic92a5f22010-10-23 10:57:31 -050010# Build and locally serve the site
11
Mark Szymanski7b131202010-11-13 10:21:59 -060012alias testsite="builtin cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
Mark Szymanskic92a5f22010-10-23 10:57:31 -050013
14# Build but don't locally serve the site
15
Mark Szymanski7b131202010-11-13 10:21:59 -060016alias buildsite="builtin cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
Mark Szymanskic92a5f22010-10-23 10:57:31 -050017
18# Rsync the site to the remote server
19
Mark Szymanski7b131202010-11-13 10:21:59 -060020alias deploysite="builtin cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"
David DeSandro3ef689f2011-06-17 10:57:31 -040021
22alias jkas="jekyll --auto --server"
23alias rmjkas="rm -rf _site/* && jkas"