-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·49 lines (34 loc) · 1.03 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
#!/bin/bash
install_brew() {
if ! command -v "brew" &> /dev/null; then
printf "Homebrew not found, installing."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
printf "Post-homebrew install commands\n"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/vandam/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
sudo softwareupdate --install-rosetta
printf "Installing homebrew packages..."
brew bundle
}
create_dirs() {
declare -a dirs=(
"~/src/"
)
for i in "${dirs[@]}"; do
ln -s "$i" "$HOME"
done
}
printf "Creating src directory\n"
create_dirs
printf "Installing Xcode Command Line Tools\n"
xcode-select --install
printf "Installing Homebrew\n"
install_brew
printf "Setting macOS preferences\n"
./.macos
printf "🐗 Stow dotfiles\n"
stow -t ~/ --adopt zsh nvim
printf "Installing Zim"
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
git restore .