blob: a9fed047e1c6168af824e373ffb306cbf4d415bc [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 Szymanski0097a1e2010-11-01 20:04:28 -05003if [ $EDITOR = "vim"]
4then
5 alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
6else
7 alias newentry="cd $JEKYLL_LOCAL_ROOT"
Mark Szymanskic92a5f22010-10-23 10:57:31 -05008
9# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog)
10
11alias newpost="cd $JEKYLL_LOCAL_ROOT/_posts && $EDITOR ."
12
13# Build and locally serve the site
14
15alias testsite="cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
16
17# Build but don't locally serve the site
18
19alias buildsite="cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
20
21# Rsync the site to the remote server
22
Mark Szymanski21820272010-10-23 11:10:37 -050023alias deploysite="cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"