-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmain.sh
82 lines (61 loc) · 1.9 KB
/
main.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
. $(pwd)/dependencies/brew.sh
. $(pwd)/dependencies/fzf.sh
. $(pwd)/dependencies/git.sh
. $(pwd)/dependencies/mac.sh
. $(pwd)/dependencies/iterm2.sh
. $(pwd)/dependencies/nodejs.sh
. $(pwd)/dependencies/nvim.sh
. $(pwd)/dependencies/zsh/autocomplete.sh
. $(pwd)/dependencies/zsh/powerlevel9k.sh
. $(pwd)/dependencies/zsh/syntax_highlight.sh
. $(pwd)/dependencies/xcode.sh
. $(pwd)/dependencies/zsh.sh
. $(pwd)/helpers/test_internet_connection.sh
. $(pwd)/helpers/setup_ssh_key.sh
. $(pwd)/helpers/step.sh
. $(pwd)/utils/spinner.sh
steps(){
step "Check: Internet connection"
test_internet_connection
step "Setup: XCode"
install_xcode
step "Install: HomeBrew"
install_home_brew
step "Tap: Casks"
install_brew_packages "tap" $(pwd)/packages/taps.txt
step "Install: Brews"
install_brew_packages "brew" $(pwd)/packages/brews.txt
step "Install: Casks"
install_brew_packages "cask" $(pwd)/packages/casks.txt
step "Install: FZF fuzzy search"
install_fzf
step "Install: Nodejs"
install_nodejs
step "Install: Oh My Zsh"
install_zsh
step "Install: Zsh plugins"
install_powerlevel9k
install_syntax_highlight
install_autocomplete
step "Config git"
configure_git $(pwd)/config/.gitconfig $(pwd)/config/.gitignore_global
step "Setup: SSH key"
setup_ssh_key
step "Config: Create Iterm2 configuration"
create_iterm2_configuration $(pwd)/config/iterm.json
step "Config: Fetch iterm2 color presets"
fetch_iterm2_color_preset Ciapre.itermcolors
fetch_iterm2_color_preset FrontEndDelight.itermcolors
fetch_iterm2_color_preset BirdsOfParadise.itermcolors
step "Config: Copy zshrc"
copy_zsh_configuration $(pwd)/config/.zshrc
step "Config: nvim"
install_vim_plug
copy_vim_plug_configuration $(pwd)/config/nvim/init.vim
step "Config: mac"
configure_mac
}
main() {
time steps
}