blob: c447894d8bff8c3d5737b125a72fcb553b0edbe8 [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 Szymanskiea84e4b2010-11-01 20:49:07 -050012# if [ $editor = "vim" ]
13# then
14# alias newpost="cd $jekyll_local_root/_posts && $editor ."
15# else
16# alias newpost="cd $jekyll_local_root"
17# fi
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"