#!/bin/sh set -eu [ -n "${DEBUG:-}" ] && set -x case "${1:-status}" in git) [ $# -gt 0 ] && shift exec /usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME $* ;; st | status) exec $0 git status -sb --untracked-files=no ;; add) shift exec $0 git add -f $* ;; commit | snapshot | record) shift $0 git commit --all --trailer=Automated-commit-by:dots --trailer=signoff --gpg-sign --message=* $* echo $0 git log --stat --format=full -1 echo ;; push) set -x $0 git push inazuma || true $0 git push origin || true ;; esac