blob: 11922d6c4a9323245d21ec2dfb7baef0746610b4 [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 Szymanski7b131202010-11-13 10:21:59 -06004then alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
5else alias newentry="builtin 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
Mark Szymanski7b131202010-11-13 10:21:59 -060012# alias newpost="builtin cd $jekyll_local_root/_posts && $editor ."
Mark Szymanskiea84e4b2010-11-01 20:49:07 -050013# else
Mark Szymanski7b131202010-11-13 10:21:59 -060014# alias newpost="builtin cd $jekyll_local_root"
Mark Szymanskiea84e4b2010-11-01 20:49:07 -050015# fi
Mark Szymanskic92a5f22010-10-23 10:57:31 -050016
17# Build and locally serve the site
18
Mark Szymanski7b131202010-11-13 10:21:59 -060019alias testsite="builtin cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
Mark Szymanskic92a5f22010-10-23 10:57:31 -050020
21# Build but don't locally serve the site
22
Mark Szymanski7b131202010-11-13 10:21:59 -060023alias buildsite="builtin cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
Mark Szymanskic92a5f22010-10-23 10:57:31 -050024
25# Rsync the site to the remote server
26
Mark Szymanski7b131202010-11-13 10:21:59 -060027alias deploysite="builtin cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"