From 91835d5f7cdedd31105483772f1006e77c936a71 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Sat, 1 Jan 2011 11:40:49 -0600 Subject: [PATCH 1/3] Added quoting for $EDITOR's with spaces --- plugins/jekyll.plugins.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/jekyll.plugins.bash b/plugins/jekyll.plugins.bash index e87b82db..9797f8b2 100644 --- a/plugins/jekyll.plugins.bash +++ b/plugins/jekyll.plugins.bash @@ -204,5 +204,5 @@ newpost() { # Open the file in your favorite editor - $EDITOR $FNAME + "$EDITOR" $FNAME } From 2c988b85bd400bb3f3142c0ea406180ed035f984 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Sat, 1 Jan 2011 18:07:49 -0600 Subject: [PATCH 2/3] Removed old code and added better indentation --- aliases/jekyll.aliases.bash | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/aliases/jekyll.aliases.bash b/aliases/jekyll.aliases.bash index 11922d6c..e52c0351 100644 --- a/aliases/jekyll.aliases.bash +++ b/aliases/jekyll.aliases.bash @@ -1,19 +1,12 @@ # Open the root of your site in your vim or builtin cd to it if [[ $EDITOR = "vim" ]] -then alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ." -else alias newentry="builtin cd $JEKYLL_LOCAL_ROOT" +then + alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ." +else + alias newentry="builtin cd $JEKYLL_LOCAL_ROOT" fi -# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog) - -# if [ $editor = "vim" ] -# then -# alias newpost="builtin cd $jekyll_local_root/_posts && $editor ." -# else -# alias newpost="builtin cd $jekyll_local_root" -# fi - # Build and locally serve the site alias testsite="builtin cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto" From bacc6235f00d8d6062c39ae3742f2b4402c9c6d9 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Sun, 9 Jan 2011 14:10:56 -0600 Subject: [PATCH 3/3] Post dates now include the year --- plugins/jekyll.plugins.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/jekyll.plugins.bash b/plugins/jekyll.plugins.bash index 9797f8b2..aebe69bc 100644 --- a/plugins/jekyll.plugins.bash +++ b/plugins/jekyll.plugins.bash @@ -105,7 +105,7 @@ newpost() { # Now we have to get the date, again. But this time for in the header (YAML Front Matter) of # the file - YAML_DATE=$(date "+%B %d %X") + YAML_DATE=$(date "+%B %d %Y %X") # Echo the YAML Formatted date to the post file