From c92a5f23f3161f84bc44fd27240634fc47c81437 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Sat, 23 Oct 2010 10:57:31 -0500 Subject: [PATCH] Added jekyll aliases --- aliases/jekyll.aliases.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 aliases/jekyll.aliases.bash diff --git a/aliases/jekyll.aliases.bash b/aliases/jekyll.aliases.bash new file mode 100644 index 0000000..249bca1 --- /dev/null +++ b/aliases/jekyll.aliases.bash @@ -0,0 +1,19 @@ +# Open the root of your site in your favorite editor + +alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ." + +# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog) + +alias newpost="cd $JEKYLL_LOCAL_ROOT/_posts && $EDITOR ." + +# Build and locally serve the site + +alias testsite="cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto" + +# Build but don't locally serve the site + +alias buildsite="cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll" + +# Rsync the site to the remote server + +alias deploysite="cd $JEKYLL_LOCAL_ROOT %% rsync -rz _site/ $JEKYLL_REMOTE_ROOT" -- 2.17.1