Rename dotbot files

This commit is contained in:
2025-02-15 11:18:58 +02:00
parent 5be7254a5b
commit 245c53f893
4 changed files with 17 additions and 13 deletions
+10 -8
View File
@@ -1,6 +1,3 @@
## TODO:
## cask_personal using some variable?
- defaults:
link:
relink: true
@@ -64,11 +61,16 @@
- stdin: true
stdout: true
stderr: true
command: >
if [ "$(uname)" = "Darwin" ]; then
./macos/install_brew.sh
brew install zsh
sudo chsh -s $(brew --prefix)/bin/zsh
brew bundle --file ./macos/Brewfile
brew bundle --file ./macos/Caskfile
./install_macos.sh
fi
- stdin: true
stdout: true
stderr: true
command: >
if [ "$(uname)" = "Linux" ]; then
./install_linux.sh
fi
+7 -5
View File
@@ -2,8 +2,9 @@
set -e
DEFAULT_CONFIG_PREFIX="default"
CONFIG_SUFFIX=".dotbot.yaml"
DEFAULT_CONFIG="default"
CONFIG_PREFIX="dotbot"
CONFIG_SUFFIX="yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
@@ -13,7 +14,8 @@ cd "${BASEDIR}"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
for conf in ${DEFAULT_CONFIG_PREFIX} ${@}; do
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${conf}${CONFIG_SUFFIX}"
for conf in ${DEFAULT_CONFIG} ${@}; do
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG_PREFIX}.${conf}.${CONFIG_SUFFIX}"
done
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
# "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"