mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-02 23:58:45 +00:00
Rename dotbot files
This commit is contained in:
@@ -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
|
||||
@@ -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}" "${@}"
|
||||
|
||||
Reference in New Issue
Block a user