chore(dotbot): add Dotbot setup and configuration

https://github.com/anishathalye/dotbot
This commit is contained in:
Stefan Imhoff
2021-11-27 16:19:05 +01:00
parent a17e64aa7c
commit ad410c4297
4 changed files with 29 additions and 0 deletions

15
install Executable file
View File

@@ -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}" "${@}"