Templating for dotbot

This commit is contained in:
Alicia Sykes 2021-01-31 17:10:19 +00:00
parent 6f9dd0aa57
commit 1b08ccbcc0
4 changed files with 44 additions and 2 deletions

View File

4
.gitmodules vendored
View File

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

View File

@ -0,0 +1,28 @@
- defaults:
link:
create: true
relink: true
- clean: ['~', '~/.config']
- link:
~/.bash:
~/.bash_profile:
~/.bashrc:
~/.dotfiles: ''
~/.gitconfig:
~/.gitignore_global:
~/.gnupg/gpg.conf:
~/.tmux.conf:
~/.vim:
~/.vimrc:
~/.zsh:
~/.zshrc:
- shell:
- git submodule sync --recursive
- git update-submodules
- >
git cleanall -f
vim/pack/vendor/start/
zsh/plugins/

14
install.sh Normal file
View File

@ -0,0 +1,14 @@
#!/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}" "${@}"