-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
executable file
·41 lines (31 loc) · 953 Bytes
/
bootstrap.sh
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
#!/bin/bash
source ~/.dotfiles/utils/utils.sh
# Load .env to customize the installation
if [ -f .env.sh ]; then
source .env.sh
fi
echo "==============================================="
echo "=============== D's DOTFILES =================="
echo "==============================================="
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
if [[ "$IS_LINUX" == true ]]; then
echo "- Info -"
echo "SO: Linux"
echo "Shell: $SHELL"
./linux/1_install_apps.linux.sh
./linux/2_link_user_files.linux.sh
elif [[ "$IS_OSX" == true ]]; then
echo "- Info -"
echo "SO: OSX"
echo "Shell: $SHELL"
if [[ $(uname -m) == "arm64" ]]; then
echo "Processor: Apple Silicon"
else
echo "Processor: Intel"
fi
./macos/1_install_apps.osx.sh
./macos/2_configure.osx.sh
fi