diff --git a/dotbot b/.dotbot similarity index 100% rename from dotbot rename to .dotbot diff --git a/.gitmodules b/.gitmodules index 1ce5c11..a5af48c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "dotbot"] - path = dotbot +[submodule ".dotbot"] + path = .dotbot url = https://github.com/anishathalye/dotbot diff --git a/.install.conf.yaml b/.install.conf.yaml index e69de29..9fcbea1 100644 --- a/.install.conf.yaml +++ b/.install.conf.yaml @@ -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/ \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..33d2154 --- /dev/null +++ b/install.sh @@ -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}" "${@}" \ No newline at end of file