Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 340 Bytes
#!/bin/bash
# NAME="dlg"
# BLURB="Personal wiki with auto-backup"
# SOURCE="https://github.com/vonbrownie/homebin/blob/master/dlg"
# REQUIRES="neovim, vimwiki, git"
set -eu
WIKI="$HOME/doc/wiki"
if [[ -n $(git -C "$WIKI" status --porcelain) ]]; then
git -C "$WIKI" add --all && git -C "$WIKI" commit -m 'save'
fi
nvim -c VimwikiIndex