added dot bin

master
Bastiaan Stroosnijder 2 years ago
parent 88137ca80b
commit 1d3fbcf9d1
  1. 15
      .local/bin/dot

@ -0,0 +1,15 @@
#!/usr/bin/env bash
GITDIR="$HOME/.dotfiles"
GITREMOTE="https://git.strooweb.nl/strootje/dotfiles.git"
GIT="git --git-dir=$GITDIR --work-tree=$HOME"
run_sync() {
[ ! -d "$GITDIR" ] && git clone --bare "$GITREMOTE" "$GITDIR"
$GIT checkout -f && $GIT config --local status.showUntrackedFiles no
}
case "$1" in
sync) run_sync;;
*) [ -d "$GITDIR" ] && $GIT "$@" || run_sync;;
esac
Loading…
Cancel
Save