blob: 4e0d740eb2175b1af6582ffd4598a7937789100c [file] [log] [blame]
Mark Szymanski0097a1e2010-11-01 20:04:28 -05001# Open the root of your site in your vim or cd to it
Mark Szymanskic92a5f22010-10-23 10:57:31 -05002
Mark Szymanskidb5a47e2010-11-01 20:06:57 -05003if [ $EDITOR = "vim" ]
Mark Szymanski0097a1e2010-11-01 20:04:28 -05004then
5 alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
6else
7 alias newentry="cd $JEKYLL_LOCAL_ROOT"
Mark Szymanski689afd92010-11-01 20:05:33 -05008fi
Mark Szymanskic92a5f22010-10-23 10:57:31 -05009
10# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog)
11
Mark Szymanskidb5a47e2010-11-01 20:06:57 -050012if [ $EDITOR = "vim" ]
Mark Szymanski689afd92010-11-01 20:05:33 -050013then
14 alias newpost="cd $JEKYLL_LOCAL_ROOT/_posts && $EDITOR ."
15else
16 alias newpost="cd $JEKYLL_LOCAL_ROOT"
17fi
Mark Szymanskic92a5f22010-10-23 10:57:31 -050018
19# Build and locally serve the site
20
21alias testsite="cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
22
23# Build but don't locally serve the site
24
25alias buildsite="cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
26
27# Rsync the site to the remote server
28
Mark Szymanski21820272010-10-23 11:10:37 -050029alias deploysite="cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"