-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·60 lines (47 loc) · 1.29 KB
/
install.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
. scripts/utils.sh
. scripts/prerequisites.sh
. scripts/brew-install-custom.sh
. scripts/osx-defaults.sh
. scripts/symlinks.sh
info "Dotfiles intallation initialized..."
read -p "Install apps? [y/n] " install_apps
read -p "Overwrite existing dotfiles? [y/n] " overwrite_dotfiles
if [[ "$install_apps" == "y" ]]; then
printf "\n"
info "===================="
info "Prerequisites"
info "===================="
install_xcode
install_homebrew
printf "\n"
info "===================="
info "Apps"
info "===================="
install_custom_formulae
install_custom_casks
run_brew_bundle
fi
printf "\n"
info "===================="
info "OSX System Defaults"
info "===================="
register_keyboard_shortcuts
apply_osx_system_defaults
printf "\n"
info "===================="
info "Terminal"
info "===================="
info "Adding .hushlogin file to suppress 'last login' message in terminal..."
touch ~/.hushlogin
printf "\n"
info "===================="
info "Symbolic Links"
info "===================="
chmod +x ./scripts/symlinks.sh
if [[ "$overwrite_dotfiles" == "y" ]]; then
warning "Deleting existing dotfiles..."
./scripts/symlinks.sh --delete --include-files
fi
./scripts/symlinks.sh --create
success "Dotfiles set up successfully."