chore: add binary folder

This commit is contained in:
Stefan Imhoff
2021-11-28 11:50:49 +01:00
parent dc986765ba
commit 4c1db87af5
4 changed files with 83 additions and 0 deletions

12
bin/zettelkasten-sync Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
cd $HOME/Library/Mobile\ Documents/iCloud\~md\~obsidian/Documents/Zettelkasten/
gstatus=`git status --porcelain`
if [ ${#gstatus} -ne 0 ]
then
git add --all
git commit -m `date +%Y-%m-%d-%H%m%S`
git pull --rebase
git push
fi