Move dotbot related stuff into meta/

This commit is contained in:
2020-08-25 13:15:06 +02:00
parent 97bc45ea0e
commit 3c65e1a552
4 changed files with 6 additions and 5 deletions

2
.gitmodules vendored
View File

@@ -1,5 +1,5 @@
[submodule "dotbot"]
path = dotbot
path = meta/dotbot
url = https://github.com/anishathalye/dotbot
[submodule ".config/tmux/plugins/tmux-continuum"]
path = .config/tmux/plugins/tmux-continuum

View File

View File

@@ -4,14 +4,15 @@ set -e
CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
cd "$(dirname "${BASH_SOURCE[0]}")"
INSTALL_DIR="$(pwd)"
BASEDIR="$(git rev-parse --show-toplevel)"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
"${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
! command -v zsh >/dev/null 2>&1 || exec zsh