-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bootstrap-mac
126 lines (87 loc) · 2.45 KB
/
.bootstrap-mac
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/env bash
echo "###########################"
echo "Setting up this Macbook ..."
echo "###########################"
echo
echo "> Tell me your full name:"
read fullname
echo
echo "> Tell me your email:"
read email
echo
echo "> Checking if exists software updates"
sudo softwareupdate -i -a
echo
echo "> Installing command-line-tools"
xcode-select --install
sudo scutil --set ComputerName "$fullname's Macbook"
sudo scutil --set HostName "$fullname's Macbook"
echo
echo "> Setting up git user"
git config --global user.name $fullname
git config --global user.email $email
echo
echo "> Install Homebrew"
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "> Activating brew"
# Activating brew
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Brewing
echo
echo "> Brewing apps"
sh .brew
# Cask
echo
echo "> Installing casks"
sh .cask
# Mac App Store app's
echo
echo "> Installing Mac App Store app's with mas"
sh .mas
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Vim Plug (for Neovim)
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Java
# brew install java
# Python support for Neovim
# NVM and latest Node LTS
echo
echo "> Installing Node Version Manager"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
echo "> Installing node 12 and setting as default"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 12
nvm alias default 12
echo "Installed node $(node --version) and made it default"
# NPM global cli's
echo
echo "> Installing npm global cli's"
sh .npm-apps
# Python global cli's
pyenv?
echo
echo "> Installing python global cli's"
sh .py-apps
# TODO: Sync Alfred preferences
echo "Sync Alfred Preferences"
# TODO: Sync 1Password preferences
echo "Sync 1Password preferences"
# TODO: iTerm theme
echo "iTerm theme: Palenight"
# Mac Os Preferences
echo
echo "> Setting up Mac OS Preferences"
sh .macos
# TODO: Private keys
# Restart computer
echo
echo "###########################"
echo " Finished your Setup!!"
echo " Restart your computer now!"
echo "###########################"