Skip to content

Instantly share code, notes, and snippets.

@TheGU
Last active February 2, 2024 17:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save TheGU/4e39c129ac9f4f252250f3644512dd0f to your computer and use it in GitHub Desktop.
Save TheGU/4e39c129ac9f4f252250f3644512dd0f to your computer and use it in GitHub Desktop.
Setup mac (brew,git, zsh with prezto, iterm2 and default app)
#!/bin/bash
# Brew : The missing package manager for macOS
# https://brew.sh/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Git
brew install git
git config --global core.autocrlf input
# mas-cli : A simple command line interface for the Mac App Store. Designed for scripting and automation.
# https://github.com/mas-cli/mas
brew install mas
# Zsh and prezto
brew install zsh
# zprezto : https://github.com/sorin-ionescu/prezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogin" ~/.zlogin
cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogout" ~/.zlogout
cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zpreztorc" ~/.zpreztorc
cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zprofile" ~/.zprofile
cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv" ~/.zshenv
cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshrc" ~/.zshrc
chsh -s /bin/zsh
# iterm2 : iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
# https://www.iterm2.com/
brew cask install iterm2
# Default Tool
brew cask install teamviewer
brew cask install google-chrome
brew cask install visual-studio-code
brew cask install transmission
brew cask install vlc
mas install 539883307 #LINE
brew install dos2unix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment