From 79ea5917339102b364f3369c62385cdeebbab611 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 13 Jun 2023 15:10:42 +0200 Subject: [PATCH] feat: :sparkles: Create the script and update README --- README.md | 33 +++++++++++++++++++++++++++-- macos-setup.sh | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 macos-setup.sh diff --git a/README.md b/README.md index cfbe582..a266e4f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ -# macos-install +# MacOS install scripts -My installation script for my MacOS machines \ No newline at end of file +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/) \ No newline at end of file diff --git a/macos-setup.sh b/macos-setup.sh new file mode 100644 index 0000000..1cd6d53 --- /dev/null +++ b/macos-setup.sh @@ -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" \ No newline at end of file