feat(journal): initial sync
This commit is contained in:
parent
ad4a3859c2
commit
8f687d6760
1 changed files with 23 additions and 17 deletions
|
@ -3,6 +3,11 @@
|
||||||
# Load config
|
# Load config
|
||||||
. ${HOME}/.ayo.config
|
. ${HOME}/.ayo.config
|
||||||
|
|
||||||
|
command=$1
|
||||||
|
|
||||||
|
if [ "$1" = "sync" ]; then
|
||||||
|
echo 'sync' #TODO: git pull, git add ... git commit, git push
|
||||||
|
else
|
||||||
journal_dir="${notes_dir}/Journal"
|
journal_dir="${notes_dir}/Journal"
|
||||||
month_dir=$(date +"%m %b")
|
month_dir=$(date +"%m %b")
|
||||||
file_name=$(date +'%m.%d.%Y').md
|
file_name=$(date +'%m.%d.%Y').md
|
||||||
|
@ -22,3 +27,4 @@ vim "$full_path"
|
||||||
|
|
||||||
# Report; TODO: write log
|
# Report; TODO: write log
|
||||||
echo ">>> " $full_path
|
echo ">>> " $full_path
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue