dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit b87b68187df84968b2dc60ba356479ea76bb9b8b
parent b16e85cfbf3b210bd410e1ae9577cc9d0a684752
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Sun, 28 May 2017 22:34:42 -0700

bin: Add jpub, publish jekyll posts from _drafts

Uses the current date

Diffstat:
bin/jpub | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/bin/jpub b/bin/jpub @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +date=$(date +"%Y-%m-%d") +file=$(basename "$1") + +mv "$1" _posts/"$date"-"$file"