2022.01.07 기준
#####
# 220107 기준
#####
# Homebrew 설치
# https://brew.sh/index_ko 설치 스크립트 복붙해서 실행
ex> % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 환경변수 설정이 안되있어서 brew 명령어가 동작하지 않음
% brew -v
zsh: command not found: brew
# Default 환경변수 출력
% echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
% cd ~
% vi .zshrc
# .zshrc 파일 생성하여 아래처럼 작성 (':wq' 로 저장)
#######################
# DEFAULT SETTING START
#######################
DEFAULT_PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH=$DEFAULT_PATH
#######################
# DEFAULT SETTING END
#######################
#######################
# HOMEBREW SETTING START
#######################
export HOME_BREW=/opt/homebrew
export PATH=${PATH}:${HOME_BREW}/bin
#######################
# HOMEBREW SETTING END
#######################
% source ~/.zshrc
% brew -v
Homebrew 3.3.9
Homebrew/homebrew-core (git revision 05df0a33337; last commit 2021-12-24)
공식 홈페이지 설치 매뉴얼 : https://git-scm.com/download/mac
# 설치
% brew install git
# 설치 확인
% git version
git version 2.32.0 (Apple Git-132)
✔️ git cli 사용시 토큰 필요
아래 링크에서 토큰 생성 후 사용
https://github.com/settings/tokens
jdk 1.8 설치 링크
https://www.oracle.com/kr/java/technologies/javase/javase8-archive-downloads.html
jdk 11 설치 링크
https://www.oracle.com/kr/java/technologies/javase/jdk11-archive-downloads.html
https://developer.android.com/studio
% cd ~
% vi .zshrc
# .zshrc 파일을 열고 아래 내용 추가 작성 (':wq' 로 저장)
#######################
# ANDROID SETTING START
#######################
# android home
export ANDROID_HOME=/Users/{user-name}/Library/Android/sdk
# adb
export ANDROID_ADB=$ANDROID_HOME/platform-tools
# path setting
export PATH=$PATH:$ANDROID_SDK:$ANDROID_NDK:$ANDROID_ADB
#######################
# ANDROID SETTING END
#######################