forked from sobolevn/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·41 lines (30 loc) · 834 Bytes
/
install
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
40
41
#!/usr/bin/env bash
set -e
# Exporting the specific shell we want to work with:
SHELL='/bin/bash'
export SHELL
# Standard dotbot pre-configuration:
readonly DOTBOT_DIR='dotbot'
readonly DOTBOT_BIN='bin/dotbot'
readonly BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly ARGS="$@"
cd "$BASEDIR"
git submodule sync --quiet --recursive
git submodule update --init --recursive
# Linking dotfiles:
run_dotbot () {
local config
config="$1"
"$BASEDIR/$DOTBOT_DIR/$DOTBOT_BIN" \
-d "$BASEDIR" \
--plugin-dir dotbot-brewfile \
-c "$config" $ARGS
}
run_dotbot 'steps/terminal.yml' || true
if [ "$CODESPACES" = true ]; then
run_dotbot 'steps/codespaces.yml' || true
else
run_dotbot 'steps/dependencies.yml' || true
fi
run_dotbot 'steps/vscode.yml' || true
# run_dotbot 'steps/streamdeck.yml' || true