mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-11-03 10:38:44 +00:00
Rename dotbot files
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
## TODO:
|
|
||||||
## cask_personal using some variable?
|
|
||||||
|
|
||||||
- defaults:
|
- defaults:
|
||||||
link:
|
link:
|
||||||
relink: true
|
relink: true
|
||||||
@@ -64,11 +61,16 @@
|
|||||||
|
|
||||||
- stdin: true
|
- stdin: true
|
||||||
stdout: true
|
stdout: true
|
||||||
|
stderr: true
|
||||||
command: >
|
command: >
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
./macos/install_brew.sh
|
./install_macos.sh
|
||||||
brew install zsh
|
fi
|
||||||
sudo chsh -s $(brew --prefix)/bin/zsh
|
|
||||||
brew bundle --file ./macos/Brewfile
|
- stdin: true
|
||||||
brew bundle --file ./macos/Caskfile
|
stdout: true
|
||||||
|
stderr: true
|
||||||
|
command: >
|
||||||
|
if [ "$(uname)" = "Linux" ]; then
|
||||||
|
./install_linux.sh
|
||||||
fi
|
fi
|
||||||
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
DEFAULT_CONFIG_PREFIX="default"
|
DEFAULT_CONFIG="default"
|
||||||
CONFIG_SUFFIX=".dotbot.yaml"
|
CONFIG_PREFIX="dotbot"
|
||||||
|
CONFIG_SUFFIX="yaml"
|
||||||
DOTBOT_DIR="dotbot"
|
DOTBOT_DIR="dotbot"
|
||||||
|
|
||||||
DOTBOT_BIN="bin/dotbot"
|
DOTBOT_BIN="bin/dotbot"
|
||||||
@@ -13,7 +14,8 @@ cd "${BASEDIR}"
|
|||||||
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}"
|
||||||
|
|
||||||
for conf in ${DEFAULT_CONFIG_PREFIX} ${@}; do
|
for conf in ${DEFAULT_CONFIG} ${@}; do
|
||||||
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${conf}${CONFIG_SUFFIX}"
|
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG_PREFIX}.${conf}.${CONFIG_SUFFIX}"
|
||||||
done
|
done
|
||||||
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
|
||||||
|
# "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
||||||
|
|||||||
Reference in New Issue
Block a user