From 017b6c41d736e46ef0ee506fe8fea2a2408cc27d Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 8 May 2022 13:48:18 +0200 Subject: [PATCH] add dotbot --- .gitmodules | 4 ++++ dotbot | 1 + install | 15 +++++++++++++++ install.conf.yaml | 6 ++++++ 4 files changed, 26 insertions(+) create mode 100644 .gitmodules create mode 160000 dotbot create mode 100755 install create mode 100644 install.conf.yaml diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..de3f4f6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "dotbot"] + path = dotbot + url = https://github.com/anishathalye/dotbot.git + ignore = dirty diff --git a/dotbot b/dotbot new file mode 160000 index 0000000..d2f76a2 --- /dev/null +++ b/dotbot @@ -0,0 +1 @@ +Subproject commit d2f76a25933f97cd37ef94e3bf9c134b9c55a02a diff --git a/install b/install new file mode 100755 index 0000000..5a7e72c --- /dev/null +++ b/install @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.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}" "${@}" diff --git a/install.conf.yaml b/install.conf.yaml new file mode 100644 index 0000000..a0f6aa6 --- /dev/null +++ b/install.conf.yaml @@ -0,0 +1,6 @@ +- defaults: + link: + create: true + +- clean: ["~"] +