From ad410c4297721d6d5ff1ebd63bbff811e70dff87 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 27 Nov 2021 16:19:05 +0100 Subject: [PATCH] chore(dotbot): add Dotbot setup and configuration https://github.com/anishathalye/dotbot --- .dotbot | 1 + .dotbot.conf.yaml | 8 ++++++++ .gitmodules | 5 +++++ install | 15 +++++++++++++++ 4 files changed, 29 insertions(+) create mode 160000 .dotbot create mode 100644 .dotbot.conf.yaml create mode 100644 .gitmodules create mode 100755 install diff --git a/.dotbot b/.dotbot new file mode 160000 index 0000000..ac5793c --- /dev/null +++ b/.dotbot @@ -0,0 +1 @@ +Subproject commit ac5793ceb58863d23427d21597634d3dcf66f9ac diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml new file mode 100644 index 0000000..150dfc0 --- /dev/null +++ b/.dotbot.conf.yaml @@ -0,0 +1,8 @@ +- defaults: + link: + relink: true + +- clean: ['~'] + +- shell: + - [git submodule update --init --recursive, Installing submodules] \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7787dfc --- /dev/null +++ b/.gitmodules @@ -0,0 +1,5 @@ +[submodule ".dotbot"] + ignore = dirty + path = .dotbot + url = https://github.com/anishathalye/dotbot + \ No newline at end of file diff --git a/install b/install new file mode 100755 index 0000000..220771c --- /dev/null +++ b/install @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e + +CONFIG=".dotbot.conf.yaml" +DOTBOT_DIR=".dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" +git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive +git submodule update --init --recursive "${DOTBOT_DIR}" + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"