-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·40 lines (30 loc) · 898 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·40 lines (30 loc) · 898 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
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
set -e
SHELL='/bin/bash'
export SHELL
# take a look around
readonly DOTBOT_DIR='dotbot'
readonly DOTBOT_BIN='bin/dotbot'
readonly BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly ARGS="$@"
# prepare dotbot
cd "$BASEDIR"
git submodule sync --quiet --recursive
git submodule update --init --recursive
# execute everything
dotbot() {
local config
config="$1"
"$BASEDIR/$DOTBOT_DIR/$DOTBOT_BIN" \
-d "$BASEDIR" \
-c "$config" -x $ARGS
}
printf "\n"
echo "Remember #1: you will be asked for the root password because some packages need to be installed."
echo "Remember #2: install script must have HTTPS access to the world because of github packages."
printf "\n"
dotbot install_steps/essentials.yml
dotbot install_steps/dependencies.yml
dotbot install_steps/shell.yml
# dotbot install_steps/neovim.yml
dotbot install_steps/cleanup.yml