-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
45 lines (39 loc) · 1017 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
42
43
44
45
#!/bin/bash
source ./utils.sh
options=(
-avh --no-perms
--exclude ".git"
--exclude ".gitignore"
--exclude "bootstrap.sh"
--exclude "brew.sh"
--exclude "mas.sh"
--exclude "custom_app.sh"
--exclude "macos.sh"
--exclude "shell.sh"
--exclude "utils.sh"
--exclude "omf.fish"
--exclude "cx"
)
# Retrieve all the gitignore file and directories that
# should be excluded from the rsync command
while read line; do
options+=(--exclude "$line")
done < .gitignore
# Copy all the files and directories to the user home
# except for the ones included in the options array
fancy_echo "Copying the dotfiles to the home directory!"
rsync "${options[@]}" . ~
# Install brew with packages and applications
sh ./brew.sh
# Install apple store applications
sh ./mas.sh
# Custom installations
sh ./custom_app.sh
# Apply MacOS changes
sh ./macos.sh
# Apply shell changes installing fish
sh ./shell.sh
# Configure heroku
sh ./heroku.sh
# Update OMF plugins and aliases
fish ./omf.fish