Skip to content

Instantly share code, notes, and snippets.

@tonymtz
Created November 22, 2024 07:58
Show Gist options
  • Save tonymtz/3a240ecc9f15757b300e7cbcbbb5ea27 to your computer and use it in GitHub Desktop.
Save tonymtz/3a240ecc9f15757b300e7cbcbbb5ea27 to your computer and use it in GitHub Desktop.
Personal Setup for MacOS fresh install, ready to work in minutes
#!/bin/bash
# Install oh-my-zsh
# source: https://ohmyz.sh/#install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install homebrew
# source: https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Load brew in the shell
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
# Install apps
brew install --cask iterm2
brew install --cask brave-browser
brew install --cask firefox
brew install --cask 1password
brew install --cask chatgpt
brew install --cask jetbrains-toolbox
brew install --cask adobe-creative-cloud
brew install --cask figma
brew install --cask rectangle-pro
brew install --cask notion
brew install --cask linear-linear
brew install --cask telegram
brew install --cask discord
brew install --cask spotify
# Install CLI utils
brew install gnupg
brew install doppler
brew install nodenv
# Zsh plugins
brew install zsh-syntax-highlighting
brew install zsh-autosuggestions
# Install nodejs via nodenv, the latest LTS at the moment of writing
nodenv install 22.11.0
# Update the config file
cat << 'EOF' >> ~/.zshrc
# Load plugins installed via homebrew
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Load nodenv
eval "$(nodenv init - zsh)"
EOF
# Generate a ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# Once registered in github, test it worked
ssh -T [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment