This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/wiki-sync

13 lines
259 B
Bash
Executable File

#!/usr/bin/env bash
for wiki in ~/vimwiki/*
do
[[ $wiki =~ _html$ ]] && continue
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 synching $wiki.
done