Merge branch 'master' of github.com:revans/bash-it
commit
89032528af
|
|
@ -1,19 +1,12 @@
|
||||||
# Open the root of your site in your vim or builtin cd to it
|
# Open the root of your site in your vim or builtin cd to it
|
||||||
|
|
||||||
if [[ $EDITOR = "vim" ]]
|
if [[ $EDITOR = "vim" ]]
|
||||||
then alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
|
then
|
||||||
else alias newentry="builtin cd $JEKYLL_LOCAL_ROOT"
|
alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
|
||||||
|
else
|
||||||
|
alias newentry="builtin cd $JEKYLL_LOCAL_ROOT"
|
||||||
fi
|
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
|
# Build and locally serve the site
|
||||||
|
|
||||||
alias testsite="builtin cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
|
alias testsite="builtin cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ newpost() {
|
||||||
# Now we have to get the date, again. But this time for in the header (YAML Front Matter) of
|
# Now we have to get the date, again. But this time for in the header (YAML Front Matter) of
|
||||||
# the file
|
# the file
|
||||||
|
|
||||||
YAML_DATE=$(date "+%B %d %X")
|
YAML_DATE=$(date "+%B %d %Y %X")
|
||||||
|
|
||||||
# Echo the YAML Formatted date to the post file
|
# Echo the YAML Formatted date to the post file
|
||||||
|
|
||||||
|
|
@ -204,5 +204,5 @@ newpost() {
|
||||||
|
|
||||||
# Open the file in your favorite editor
|
# Open the file in your favorite editor
|
||||||
|
|
||||||
$EDITOR $FNAME
|
"$EDITOR" $FNAME
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue