This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
provision.sh
81 lines (67 loc) · 2.11 KB
/
provision.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
#!/bin/bash
# Provision a new Mac
# Install Command-line tools as dependency for Homebrew
echo "🛠️ Installing XCode Command Line tools..."
xcode-select --install # Sets the development directory path to /Library/Developer/CommandLineTools
echo "Successfully installed XCode Command Line tools!"
# Configure Git
git config --global user.name "Jordan Foreman"
git config --global user.email [email protected]
# Install Homebrew
echo "🍻 Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "Successfully installed Homebrew!"
# Install Generically Required Software
echo "📦 Install Homebrew packages..."
brew install \
bat \
gnupg \
openssl \
node \
nvm \
exa \
tor \
colima \
spaceship
# Brew > Cask
brew install --cask \
visual-studio-code \
iterm2 \
dbeaver-community \
fantastical \
todoist \
obsidian \
1password \
altserver \
discord \
brave-browser \
protonvpn \
vlc \
zoom \
intellij-idea
echo "Successfully installed Homebrew Packages!"
echo "Configuring Shell Environment"
touch ~/.zshrc
touch ~/.aliases
mkdir -p ~/.nvm
echo "Installing Oh My ZSH!"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "Configuring Rocketship 🚀"
echo "# Rocketship Setup" >> ~/.zshrc
echo "source $(brew --prefix)/opt/spaceship/spaceship.zsh" >> ~/.zshrc
echo "" >> ~/.zshrc
echo "Configuring 📦 Node.js Version Manager"
echo "# NVM Configuration" >> ~/.zshrc
echo "export NVM_DIR=\"$HOME/.nvm\"" >> ~/.zshrc
echo "[ -s \"/usr/local/opt/nvm/nvm.sh\" ] && \. \"/usr/local/opt/nvm/nvm.sh\"" >> ~/.zshrc
echo "[ -s \"/usr/local/opt/nvm/etc/bash_completion.d/nvm\" ] && \. \"/usr/local/opt/nvm/etc/bash_completion.d/nvm\"" >> ~/.zshrc
echo "" >> ~/.zshrc
# Setup common aliases
echo "# Load Aliases" >> ~/.zshrc
echo "if [ -f ~/.aliases ]; then" >> ~/.zshrc
echo " . ~/.aliases" >> ~/.zshrc
echo "fi" >> ~/.zshrc
echo "" >> ~/.zshrc
echo "alias ls=exa -la" >> ~/.aliases
echo "alias cat=bat" >> ~/.aliases
source ~/.zshrc