Move dotbot related stuff into meta/
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,5 +1,5 @@
|
|||||||
[submodule "dotbot"]
|
[submodule "dotbot"]
|
||||||
path = dotbot
|
path = meta/dotbot
|
||||||
url = https://github.com/anishathalye/dotbot
|
url = https://github.com/anishathalye/dotbot
|
||||||
[submodule ".config/tmux/plugins/tmux-continuum"]
|
[submodule ".config/tmux/plugins/tmux-continuum"]
|
||||||
path = .config/tmux/plugins/tmux-continuum
|
path = .config/tmux/plugins/tmux-continuum
|
||||||
|
|||||||
@@ -4,14 +4,15 @@ set -e
|
|||||||
|
|
||||||
CONFIG="install.conf.yaml"
|
CONFIG="install.conf.yaml"
|
||||||
DOTBOT_DIR="dotbot"
|
DOTBOT_DIR="dotbot"
|
||||||
|
|
||||||
DOTBOT_BIN="bin/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 -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
|
||||||
git submodule update --init --recursive "${DOTBOT_DIR}"
|
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
|
! command -v zsh >/dev/null 2>&1 || exec zsh
|
||||||
Reference in New Issue
Block a user