Skip to content

Instantly share code, notes, and snippets.

@jpalala
Forked from TheGU/setup_mac.sh
Created July 26, 2023 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpalala/790870eb79e8051ccaa8372e233eb923 to your computer and use it in GitHub Desktop.
Save jpalala/790870eb79e8051ccaa8372e233eb923 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