-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathignition.sh
More file actions
47 lines (38 loc) · 1.31 KB
/
Copy pathignition.sh
File metadata and controls
47 lines (38 loc) · 1.31 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
#!/bin/zsh
# Purpose: Automates the setup of a MacOS development environment
set -e
function install_oh_my_zsh {
echo "Installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sed 's:env zsh::g' | sed 's:chsh -s .*$::g')"
}
function install_homebrew {
echo "Installing Homebrew..."
sudo -H mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
echo 'PATH=$PATH:~/homebrew/sbin:~/homebrew/bin:/opt/local/bin' >> ~/.zshrc
chsh -s /bin/zsh
brew update
export HOMEBREW_NO_ANALYTICS=1
brew analytics off
sudo chown -R $(whoami) /usr/local/lib/pkgconfig
}
function install_brew_packages {
echo "Installing Brew Packages..."
brew bundle --file=Desktop/MACOSSetupScript/Brewfile
}
function download_openvpn_config {
echo "Downloading OpenVPN config..."
git clone https://github.com/dr0pp3dpack3ts/openssh-files.git
openvpn --import-config --config-file=Desktop/openssh-files/cyberalvin.ovpn
}
function start_macos_services {
echo "Starting MacOS services..."
softwareupdate -i -a --restart
}
install_oh_my_zsh
install_homebrew
install_brew_packages
install_zsh_tools
download_openvpn_config
install_powerlevel10k
start_macos_services
echo "MacOS development environment setup complete!"