-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·26 lines (18 loc) · 848 Bytes
/
install
File metadata and controls
executable file
·26 lines (18 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
set -e
CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# google_dirs=$(find ~/Library/Application\ Support/Google -maxdepth 1 -type d)
# jetbrains_dirs=$(find ~/Library/Application\ Support/JetBrains -maxdepth 1 -type d)
# replacement=""
# for dir in $google_dirs $jetbrains_dirs; do
# replacement+="${dir}/keymaps/dotfiles_keymap.xml: intellij/dotfiles_keymap.xml\n"
# done
# sed -i.bak '/# Android Studio \/ IntelliJ/,/#/{//!d}' install.conf.yaml
# sed -i.bak "/# Android Studio \/ IntelliJ/a\\$replacement" install.conf.yaml
cd "${BASEDIR}"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"