터미널 실행 후 Homebrew 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew PATH 설정
echo >> /Users/user/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/user/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew 자동 업데이트 설정
brew tap homebrew/autoupdate
brew install pinentry-mac terminal-notifier
brew autoupdate start --upgrade --immediate --cleanup --sudo
brew 명령어
brew install (일반): 커맨드라인 도구들을 설치 (예: ffmpeg, git, openjdk)
brew install --cask: GUI 앱을 설치 (예: Chrome, Discord, Visual Studio Code, alt-tab)
brew으로 다운받았을때 환경변수설정
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc