Mark Szymanski | 0097a1e | 2010-11-01 20:04:28 -0500 | [diff] [blame] | 1 | # Open the root of your site in your vim or cd to it |
Mark Szymanski | c92a5f2 | 2010-10-23 10:57:31 -0500 | [diff] [blame] | 2 | |
Robert R Evans | 044a116 | 2010-11-02 13:45:21 -0700 | [diff] [blame] | 3 | if [[ $EDITOR = "vim" ]] |
| 4 | then alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ." |
| 5 | else alias newentry="cd $JEKYLL_LOCAL_ROOT" |
Mark Szymanski | 689afd9 | 2010-11-01 20:05:33 -0500 | [diff] [blame] | 6 | fi |
Mark Szymanski | c92a5f2 | 2010-10-23 10:57:31 -0500 | [diff] [blame] | 7 | |
| 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 Szymanski | ea84e4b | 2010-11-01 20:49:07 -0500 | [diff] [blame] | 10 | # 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 Szymanski | c92a5f2 | 2010-10-23 10:57:31 -0500 | [diff] [blame] | 16 | |
| 17 | # Build and locally serve the site |
| 18 | |
| 19 | alias testsite="cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto" |
| 20 | |
| 21 | # Build but don't locally serve the site |
| 22 | |
| 23 | alias buildsite="cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll" |
| 24 | |
| 25 | # Rsync the site to the remote server |
| 26 | |
Mark Szymanski | 2182027 | 2010-10-23 11:10:37 -0500 | [diff] [blame] | 27 | alias deploysite="cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT" |