blob: a5078e32be35c97fed8b6ff351188c4364851a85 [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
Robert R Evans044a1162010-11-02 13:45:21 -07003if [[ $EDITOR = "vim" ]]
4then alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
5else alias newentry="cd $JEKYLL_LOCAL_ROOT"
Mark Szymanski689afd92010-11-01 20:05:33 -05006fi
Mark Szymanskic92a5f22010-10-23 10:57:31 -05007
8# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog)
9
Mark Szymanskiea84e4b2010-11-01 20:49:07 -050010# if [ $editor = "vim" ]
11# then
12# alias newpost="cd $jekyll_local_root/_posts && $editor ."
13# else
14# alias newpost="cd $jekyll_local_root"
15# fi
Mark Szymanskic92a5f22010-10-23 10:57:31 -050016
17# Build and locally serve the site
18
19alias testsite="cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
20
21# Build but don't locally serve the site
22
23alias buildsite="cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
24
25# Rsync the site to the remote server
26
Mark Szymanski21820272010-10-23 11:10:37 -050027alias deploysite="cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"