Added wiki-sync script

This commit is contained in:
mandlm 2020-10-23 12:06:15 +02:00
parent 3637ce1f94
commit 7e3ed8cff6
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 14 additions and 0 deletions

View File

@ -3,5 +3,8 @@
TARGET_DIR=~/.local/bin
mkdir --parents ~/.local/bin
ln -svrf light ${TARGET_DIR}/light
ln -svrf dark ${TARGET_DIR}/dark
ln -svrf wiki-sync ${TARGET_DIR}/wiki-sync

11
bin/wiki-sync Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
for wiki in ~/vimwiki/*
do
echo Synching $wiki
git -C $wiki pull --rebase --autostash
git -C $wiki add .
git -C $wiki commit -a -n -m "Auto-update"
git -C $wiki push
echo done.
done