Skip to content

Instantly share code, notes, and snippets.

@peerapongsam
Created April 23, 2019 03:14
Show Gist options
  • Save peerapongsam/7401d317f14abf6c963e1152873eb8bd to your computer and use it in GitHub Desktop.
Save peerapongsam/7401d317f14abf6c963e1152873eb8bd to your computer and use it in GitHub Desktop.
set-up-new-mac

#Set Up New Mac

Brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

zsh

brew install zsh

Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

~/.zshrc

ZSH_THEME="gianu"

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"

export ANDROID_HOME="~/Library/Android/sdk"
export PATH="$ANDROID_HOME/tools:$PATH"
export PATH="$ANDROID_HOME/tools:$PATH"
export PATH="$ANDROID_HOME/tools/bin:$PATH"
export PATH="$ANDROID_HOME/platform-tools:$PATH"
export PATH="$ANDROID_HOME/build-tools/28.0.3:$PATH"

rbenv

brew install rbenv ruby-build

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

ruby

rbenv global 2.4.1

fastlane

gem install fastlane

cocoapods

gem install cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment