-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
78 lines (62 loc) · 1.57 KB
/
Copy pathsetup.sh
File metadata and controls
78 lines (62 loc) · 1.57 KB
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
# based on https://gist.github.com/chris-sev/45a92f4356eaf4d68519d396ef42dd99
#!/bin/bash
set -euo pipefail # explanation: https://explainshell.com/explain?cmd=set+-euo+pipefail
echo "Setting up your MacBook..."
sudo -v
# Homebrew Installation
echo "Installing Homebrew..."
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
echo "Homebrew Successfully Installed!"
# Install Homebrew Packages
cd ~
echo "Installing Homebrew Packages..."
homebrew_packages=(
"git"
"htop"
"wget"
"curl"
"telnet"
"tree"
"trash"
"pyenv"
"pyenv-virtualenv"
)
for homebrew_package in "${homebrew_packages[@]}"; do
brew install "$homebrew_package"
done
# Install Casks
echo "Installing Homebrew Cask Packages..."
homebrew_cask_packages=(
"visual-studio-code"
"brave-browser"
"docker"
"rectangle"
"postman"
"notion"
"iterm2"
"the-unarchiver"
"spotify"
"teamviewer"
"stremio"
"iina"
"raycast"
"gray"
)
for homebrew_cask_package in "${homebrew_cask_packages[@]}"; do
brew install --cask "$homebrew_cask_package"
done
# zsh and oh-my-zsh
echo "Adding ZSH"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# configure git
git config --global user.name "<github_username>"
git config --global user.email "<github_email>"
# Generate SSH key
echo "Generating SSH keys..."
ssh-keygen -t rsa -C "eduardosantoshf@gmail.com"
pbcopy < ~/.ssh/id_rsa.pub
echo "Copied SSH key to clipboard - You can now add it to Github!"
# Complete
echo "Installation Complete!"