feat: Create the script and update README

This commit is contained in:
2023-06-13 15:10:42 +02:00
parent 253b1d2897
commit 79ea591733
2 changed files with 88 additions and 2 deletions

57
macos-setup.sh Normal file
View File

@ -0,0 +1,57 @@
#! /usr/bin/env bash
# Setup script for setting up a new macos machine
echo "Starting setup"
# Install xcode CLI
xcode-select --install
# Install homebrew
# Check if homebrew is installed
if test ! $(which brew); then
echo "Installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew
brew update
PACKAGES=(
nvm
git
git-lfs
wget
zsh
)
echo "Installing packages..."
brew install ${PACKAGES[@]}
# Link readline
brew link --force readline
echo "Cleaning up..."
brew cleanup
echo "Installing cask..."
CASKS=(
iterm2
visual-studio-code
1password
altserver
appcleaner
discord
iina
notion
keka
termius
arc
swish
nordvpn
)
echo "Installing cask apps..."
brew install --cask ${CASKS[@]}
echo "Macbook setup complete"