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

1
.dotbot Submodule

Submodule .dotbot added at ac5793ceb5

8
.dotbot.conf.yaml Normal file
View File

@@ -0,0 +1,8 @@
- defaults:
link:
relink: true
- clean: ['~']
- shell:
- [git submodule update --init --recursive, Installing submodules]

5
.gitmodules vendored Normal file
View File

@@ -0,0 +1,5 @@
[submodule ".dotbot"]
ignore = dirty
path = .dotbot
url = https://github.com/anishathalye/dotbot

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