728x90
맥 기본 터미널 iTerm2 설정해 보겠습니다~
iTerm2
- https://iterm2.com
- iTerm2 설치합니다.
iTerm2 - macOS Terminal Replacement
iTerm2 by George Nachman. Website by Matthew Freeman, George Nachman, and James A. Rosen. Website updated and optimized by HexBrain
iterm2.com
zsh
- zsh 공식 사이트: zsh
GitHub - ohmyzsh/ohmyzsh: 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh config
🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...
github.com
- 설치한 뒤 iTerm에서 아래 명령어 실행
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
iTerm에서 zsh 디폴트 설정
- iTerm > Preferences open
- Command :
/bin/zsh
입력

brew
Homebrew
The Missing Package Manager for macOS (or Linux).
brew.sh
- 커맨드 입력 후 password 입력
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 라이센스 동의 - agree 입력
sudo xcodebuild -license
agree
- next Steps 명령어 실행 - 환경변수 설정
➜ ~ (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/chae/.zprofile
➜ ~ eval "$(/usr/local/bin/brew shellenv)"
- zsh에 실행 시 자동 brew 명령어 실행 위해 vi 편집기로 zsh 쉘 수정
vi ~/zshrc
i -> 입력 모드 전환
:wq! -> 저장후 종료
eval $(/usr/local/bin/brew shellenv)

이렇게 윈도우의 터미널처럼 사용하는 iTerm2를 커스텀 마이징 해봤습니다
환경 변수 설정이 처음엔 낯설긴 하지만 직관적이어서 이해하고 나면 편한 것 같네요
맥이 어색해서 아직 적응 중이지만 설정하는 재미도 있는 거 같습니다
728x90
'Mac' 카테고리의 다른 글
[Mac] 맥 개발환경 설정 (5) - 인텔리제이(intellij) 설치, react 스니펫 단축어 (0) | 2024.04.17 |
---|---|
[Mac] 맥 개발환경 설정 (4) - java openjdk 설치, 개발툴 정리 (0) | 2024.04.15 |
[Mac] 맥 개발 환경 설정 (3) - node, yarn 설치 (0) | 2024.04.14 |
[Mac] 맥 개발 환경 설정 (2) - 맥 git 설치, git config 설정 (0) | 2024.04.13 |
구글 크롬 확장 프로그램 백업 압축 방법 (0) | 2024.03.25 |