Files
sxbm/extra/sxbm_sync

11 lines
187 B
Bash
Executable File

#!/bin/sh
set -eu
sxbm_orig "$@"
cd ~/.local/share/sxbm
git add bookmarks
if ! git diff --cached --quiet; then
git commit -q -m "Auto-update bookmarks on $(date)"
git push -q
fi