feat: Create the script and update README

This commit is contained in:
Louis Gallet 2023-06-13 15:10:42 +02:00
parent 253b1d2897
commit 79ea591733
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY
2 changed files with 88 additions and 2 deletions

View File

@ -1,3 +1,32 @@
# macos-install
# MacOS install scripts
My installation script for my MacOS machines
## Usage
```bash
bash <(curl -s https://gitea.louisgallet.fr/lgallet/macos-install/macos-setup.sh)
```
## What it does
This script installs the software required for a new machine on MacOS. This is the software that I use on a daily basis and which I find most useful.
The script installs the following software:
- [Homebrew](https://brew.sh/)
- [NVM](https://github.com/nvm-sh/nvm)
- [Wget](https://www.gnu.org/software/wget/)
- [Git](https://git-scm.com/)
- [Zsh](https://www.zsh.org/)
- [iTerm2](https://iterm2.com/)
- [Visual Studio Code](https://code.visualstudio.com/)
- [1Password](https://1password.com/)
- [AltServer](https://altstore.io/)
- [App Cleaner](https://freemacsoft.net/appcleaner/)
- [Discord](https://discord.com/)
- [IINA](https://iina.io/)
- [Notion](https://www.notion.so/)
- [Keka](https://www.keka.io/)
- [Termius](https://termius.com/)
- [Arc](https://arc.net)
- [Swish](https://highlyopinionated.co/swish/)
- [NordVPN](https://nordvpn.com/)

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"